Пример #1
0
 /**
  * {@see addTagsAsAnnotations} for a class' methods.
  * @param StaticReflectionParser $reflectionParser
  * @todo Since StaticReflectionProperty does not support docblocks for static
  *  members, tags are not added for those atm.
  */
 protected function addMethodTagsAsAnnotations(StaticReflectionParser $reflectionParser)
 {
     $className = $reflectionParser->getClassName();
     $methods =& $this->classReflectionData[$className][static::DATA_CLASS_METHODS];
     if (!is_array($methods)) {
         return;
     }
     foreach ($methods as $methodName => &$method) {
         if ($methodName == 'jsonSerialize') {
             // FIXME Prevent jsonSerialize bug.
             continue;
         }
         $reflector = $reflectionParser->getReflectionMethod($methodName);
         $isStatic = $this->digArray($method, static::DATA_METHOD_STATIC);
         if (!$isStatic) {
             $this->addTagsAsAnnotations($reflector, $method);
         }
     }
 }
Пример #2
0
 /**
  * {@inheritDoc}
  */
 public function getName()
 {
     return $this->staticReflectionParser->getClassName();
 }