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