Пример #1
0
 /**
  * @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();
 }
Пример #2
0
 /**
  * @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;
 }