![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/lib/internal/Customweb/Annotation/ |
<?php class Customweb_Annotation_ReflectionAnnotatedMethod extends ReflectionMethod implements Customweb_Annotation_IAnnotationReflector { private $annotations; public function __construct($class, $name) { parent::__construct($class, $name); $this->annotations = $this->createAnnotationBuilder()->build($this); } public function hasAnnotation($class) { return $this->annotations->hasAnnotation($class); } public function getAnnotation($annotation) { return $this->annotations->getAnnotation($annotation); } public function getAnnotations() { return $this->annotations->getAnnotations(); } public function getAllAnnotations($restriction = false) { return $this->annotations->getAllAnnotations($restriction); } public function getDeclaringClass() { $class = parent::getDeclaringClass(); return new Customweb_Annotation_ReflectionAnnotatedClass($class->getName()); } public function getDeclaringClassName() { return parent::getDeclaringClass()->getName(); } protected function createAnnotationBuilder() { return new Customweb_Annotation_AnnotationsBuilder(); } }