public function __construct($name, $instance, $method) { $class = new \Wingu\OctopusCore\Reflection\ReflectionClass($instance); $this->method = $class->getMethod($method); $doc = $this->method->getReflectionDocComment(); parent::__construct($name, $doc); $this->instance = $instance; $this->methodName = $method; }
/** * @deprecated */ public static function reflections($instance, $method = null) { $class = new \Wingu\OctopusCore\Reflection\ReflectionClass($instance); if ($method != null) { $method = $class->getMethod($method); $doc = $method->getReflectionDocComment(); $annotations = $doc->getAnnotationsCollection(); return array($method, $annotations, $class, $doc); } $doc = $class->getReflectionDocComment(); $annotations = $doc->getAnnotationsCollection(); return array($class, $annotations, $doc); }