Nette\Reflection\Method::getAnnotations PHP Метод

getAnnotations() публичный Метод

Returns all annotations.
public getAnnotations ( ) : Nette\Reflection\IAnnotation[][]
Результат Nette\Reflection\IAnnotation[][]
    public function getAnnotations()
    {
        return AnnotationsParser::getAll($this);
    }

Usage Example

Пример #1
0
 /**
  * @param  IEventListener $service
  * @param  Method $method
  */
 public function __construct($service, Method $method)
 {
     $this->service = $service;
     $this->method = $method;
     $this->annotations = $method->getAnnotations();
 }
All Usage Examples Of Nette\Reflection\Method::getAnnotations