Пример #1
0
 /**
  * {@see addTagsAsAnnotations} for a class' properties.
  * @param StaticReflectionParser $reflectionParser
  * @todo Since StaticReflectionProperty does not support docblocks for static
  *  members, tags are not added for those atm.
  */
 protected function addPropertyTagsAsAnnotations(StaticReflectionParser $reflectionParser)
 {
     $className = $reflectionParser->getClassName();
     $properties =& $this->classReflectionData[$className][static::DATA_CLASS_PROPERTIES];
     if (!is_array($properties)) {
         return;
     }
     foreach ($properties as $propertyName => &$property) {
         $reflector = $reflectionParser->getReflectionProperty($propertyName);
         $isStatic = $this->addPropertyStaticInfo($className, $propertyName);
         if (!$isStatic) {
             $this->addTagsAsAnnotations($reflector, $property);
         }
     }
 }
Пример #2
0
 /**
  * {@inheritDoc}
  */
 public function getProperty($name)
 {
     return $this->staticReflectionParser->getReflectionProperty($name);
 }