/** * @author Lauri Orgla <*****@*****.**> * * @param \ReflectionClass $reflection * @param $result */ public function parseClass(\ReflectionClass $reflection, &$result) { $result['class']['name'] = $reflection->getName(); $result['class']['phpdoc'] = Factory::getCommentBlock()->setPhpDoc($reflection->getDocComment())->parse()->getResult(); }
/** * @author Lauri Orgla <*****@*****.**> * @return $this */ public function parse() { $this->setResult(['accessType' => $this->getAccessType(), 'name' => $this->getMethod()->name, 'parameters' => $this->getMethod()->getParameters(), 'numberOfParameters' => $this->getMethod()->getNumberOfParameters(), 'numberOfRequiredParameters' => $this->getMethod()->getNumberOfRequiredParameters(), 'methodStaticVariables' => $this->getMethod()->getStaticVariables(), 'phpdoc' => Factory::getCommentBlock()->setPhpDoc($this->getMethod()->getDocComment())->parse()->getResult()]); return $this; }