parser = new DocParser(); $this->parser->setIgnoreNotImportedAnnotations(true); } /** * Adds a namespace in which we will look for annotations. * * @param string $namespace * * @return void */ public function addNamespace($namespace) { $this->parser->addNamespace($namespace); } /** * {@inheritDoc} */ public function getClassAnnotations(ReflectionClass $class) { return $this->parser->parse($class->getDocComment(), 'class ' . $class->getName()); } /** * {@inheritDoc} */ public function getMethodAnnotations(ReflectionMethod $method) { return $this->parser->parse( $method->getDocComment(), 'method ' . $method->getDeclaringClass()->name . '::' . $method->getName() . '()' ); } /** * {@inheritDoc} */ public function getPropertyAnnotations(ReflectionProperty $property) { return $this->parser->parse( $property->getDocComment(), 'property ' . $property->getDeclaringClass()->name . '::$' . $property->getName() ); } /** * {@inheritDoc} */ public function getClassAnnotation(ReflectionClass $class, $annotationName) { foreach ($this->getClassAnnotations($class) as $annot) { if ($annot instanceof $annotationName) { return $annot; } } return null; } /** * {@inheritDoc} */ public function getMethodAnnotation(ReflectionMethod $method, $annotationName) { foreach ($this->getMethodAnnotations($method) as $annot) { if ($annot instanceof $annotationName) { return $annot; } } return null; } /** * {@inheritDoc} */ public function getPropertyAnnotation(ReflectionProperty $property, $annotationName) { foreach ($this->getPropertyAnnotations($property) as $annot) { if ($annot instanceof $annotationName) { return $annot; } } return null; } } __halt_compiler();----SIGNATURE:----s9PRKm6Lze1+L8FfrJ8eUKek6R7MpnXtmJ8RgRTHCUMmiQ7D6OzlCp+PkPZ48AwVRFs1YdDC9/E6tJMXvjjl0MfZopU0d2X8iwdS5rDPA6uHuWZKsiFHgAV7pV3JJwiKHqYipUsPGEAf4oB9I3KJWs7x97LdXKAoezMsU0/3mcYAXQZ1HyNh9x1NAt5ATUlvvYKWYdhf6dezf7S7NRBbzfd6Z9mXjlMMGX3j4NifVpkbZyC9yoJSeqkZWJcw/HisU6hBsN00akJhbUcQLTr2TAK96TIMIV6PyaI0wSsTwVop0thhCUfUIwSN4imeYHCmneyGwd5PLeNbC6CnEag5uaAQZACVBwf9HtyMxpc2F9Mqc42hRnU9p6KKSkvTrzOKuUbLXQ1dYuk2Gjia8XRwcocj0WAM9Vk7m/+ZbA2x9SkCNCtZpprEiK1786oEi81x8cjHDCFskOlsyK+ye10jHVENNsRqsXiaEUVwOlBucEZWvFpZawvYEBhfzyyZHRqTjDDbLpz+ZGyCxD4a1apErTLRqshMbXAIWZm6F5V/99UzBUzwPx0qTuq8LwgG8imuTT8q/Zq4br6pUX5sjS9mq1wtSYm44IMUxKvJs0Qy5rL3XEb3UbW3gAiINzF5DVZYYf3fuAMFQPi9qAB6ilgkbEt6BGQ/4vXzF46+DPXn8+o=----ATTACHMENT:----NTI4MDY2Nzc0OTE4OTkwNCA5MDAzNTg0ODM3MzAyODc2IDE5NDYzNjIzNTY5Njc0NTc=