예제 #1
0
 public function getProperties($annotationName)
 {
     $result = [];
     if ($this->reflection->getPropertiesAnnotations() !== false) {
         foreach ($this->reflection->getPropertiesAnnotations() as $field => $annotations) {
             $list = ArrayList::create($annotations->getAnnotations());
             if ($list->find(function (Annotation $annotation) use($annotationName) {
                 return $annotation->getName() == $annotationName;
             }) != null) {
                 $result[$field] = $list;
             }
         }
     }
     return $result;
 }
예제 #2
0
 public function getPropertiesAnnotations()
 {
     return parent::getPropertiesAnnotations();
 }