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:----UMhWlmRtdEIv7dasTlIqbJp4JQ7y+ahFEIFtVkIzcpPFKTn34YzbXVYXdi/B6NmpMIgE3NGgT0ag65FUYtfZYn91YOGlIObETNB3s0+QtlGbeQRDNcKZTUbzN9FQn+Ox5sQB9EsGqOeYbvX9hPJ6M1OObxDO0GpppVsk8yvGzByre/2K+kgzq4KJzkLF32IPN/QekQF0GK4sEzOfKSc+nN22D0uRFsNx/ERv1c2pQn4b13tA7+NjTUPyqHHeKtTpFlkvhFe5njQOo702eoaOjRZaUYYHMh+eyfEdsMVLfW0zf0LdDw2aU0M0ZvHJiihR8QMxLUJRjHKjoiFAC0ERByn3Q229HorVWNm0/L3uk40Xw8Eb6+NNMDy2M1BLhTGnCF9hPS222RDuvbods4ysZQ8N33WsoP26BlDe/GzNKodfJKN9aIyHtQUe1Iy2Zz7f1UzrMmPjAzsdlq10/DC6uNFJWnMgRbCUKAyqH36hF/na6Le7nGnvrzDNWb/tBhXiRUFyqB+ej+zbIRBgWRY6N0iJ64gTR7YpYzqkAsUoxOMDBzTDshS75RGj99Qz7U54MORF+o87jDisytA55Ge5CRpRaBILhlCKb5I5g3OfRX3gXN0j/DW/GUxlvkCNs1mC01o/k9dEEFMnXwWITZTajgFTW1x2gAwOGodeEo94jjs=----ATTACHMENT:----NDk5MzUwMTQwNDQxNjQ3MSAzNzg2NDUzNDg5OTE1MDgxIDI1MDU2OTkxNTMzNzk0MDk=