reflection->getDocComment(); $phpdoc = new DocBlock($docblockComment); // First set the description (synopsis) and help. $this->commandInfo->setDescription((string)$phpdoc->getShortDescription()); $this->commandInfo->setHelp((string)$phpdoc->getLongDescription()); $this->processAllTags($phpdoc); } protected function getTagContents($tag) { return $tag->getContent(); } /** * Store the data from a @arg annotation in our argument descriptions. */ protected function processArgumentTag($tag) { if (!$this->pregMatchNameAndDescription((string)$tag->getDescription(), $match)) { return; } $this->addOptionOrArgumentTag($tag, $this->commandInfo->arguments(), $match); } /** * Store the data from a @param annotation in our argument descriptions. */ protected function processParamTag($tag) { if (!$tag instanceof ParamTag) { return; } return parent::processParamTag($tag); } /** * Store the data from a @return annotation in our argument descriptions. */ protected function processReturnTag($tag) { if (!$tag instanceof ReturnTag) { return; } $this->commandInfo->setReturnType($tag->getType()); } }