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:----bTlzVRHaHpPKpZlAY2qiVUTIBV4fskVaLO7B0tCrHq3oHU2j1FLoabZReTHj6NMSI7Iipd3K7C78hum68KtJr3eF1smy6wZKFhU04cqW6dGLbKIQFokotY/F885HlGHmpRWx4WvnIN6CarC5JacXvu4frqPljvBgkpfTM6LqBLqfPT3MaP6jcDylYZIkc9bu5ddmGNp8ySHV+DmzJCZaXZzZGc0Ci2vSb/bAYjBqTnGNiLah/i4mhnKlylVCxY1uepFCqW6Ep4WCwmiA9OdJLf4WNl7OnPlRMSeCOO1N1zsN+FJSmWUxd+vpFtAka4oAc3t9C43mNAkEmYt0PKYtYdzpuzxjiS2FTkzH2xb9N45nAo25xSLYqFqdf7JhvFDDlA+Bmflh3kCeTc5cDHX8tkb0lHTKtgNP7OJsVPaH2VZAbcn1PIIcYfTFsTX+RuIVNn8e0CI+tH5E4SL11mGaUPCMT17Z8SsLUjYB2dRWu6e694q+D4v65/Jbg6BLooLTneXTcAr1BXlHm5Jf0opxfVjoHCQwTg8H77uCRYQlzyeMjaiX/08hxQIgeB1SCvxRDqfhx9yIrBxSa8EwZeowOoF5QdprJwDSqvULLeM6Jx95dHm43KkF2DXL3xDDk3eNKMqfQlTTddMoe7a5gXPfnNnD5pjawjhXTnR4/Wmr+B0=----ATTACHMENT:----NjQyMTI3NTk2NDE1MDQ4MSA4MzQwODQzMjg5ODcwNzUxIDcyNDk1MTc0MzQ5MzYyNjY=