예제 #1
0
 /**
  * Constructor
  *
  * @param IReflectionMethod $method
  */
 public function __construct(IReflectionMethod $method)
 {
     parent::__construct($method);
     $methodName = $this->reflection->getName();
     $reader = new AnnotationReader();
     $this->doctrineAnnotations = $reader->getMethodAnnotations(new \ReflectionMethod($this->reflection->getDeclaringClassName(), $methodName));
     list($this->name, $this->httpMethod) = $this->processMethodName($methodName);
     $this->processAnnotations();
 }
예제 #2
0
 public function __construct(ReflectionNamespace $namespace)
 {
     parent::__construct($namespace);
 }
예제 #3
0
 function __construct(IReflectionClass $reflection)
 {
     parent::__construct($reflection);
     $reader = new AnnotationReader();
     $this->doctrineAnnotations = $reader->getClassAnnotations(new \ReflectionClass($this->reflection->getName()));
 }
예제 #4
0
 public function __construct(IReflectionConstant $constant)
 {
     parent::__construct($constant);
 }