Example #1
0
 public function getAttributeRecursive($name)
 {
     $attrs = $this->info['attributes'];
     if (isset($attrs[$name])) {
         return $attrs[$name];
     }
     $p = get_parent_class($this->class);
     if ($p === false) {
         return null;
     }
     $rm = new ReflectionMethod($p, $this->name);
     if ($rm->isPrivate()) {
         return null;
     }
     return $rm->getAttributeRecursive($name);
 }