getName(), $this->getName()); } public function __toString() { return parent::getDeclaringClass()->getName() . '::' . $this->getName() . '()'; } /** * @return ClassType */ public function getDeclaringClass() { return new ClassType(parent::getDeclaringClass()->getName()); } /** * @return static */ public function getPrototype() { $prototype = parent::getPrototype(); return new static($prototype->getDeclaringClass()->getName(), $prototype->getName()); } /** * @return Extension */ public function getExtension() { return ($name = $this->getExtensionName()) ? new Extension($name) : null; } /** * @return Parameter[] */ public function getParameters() { $me = [parent::getDeclaringClass()->getName(), $this->getName()]; foreach ($res = parent::getParameters() as $key => $val) { $res[$key] = new Parameter($me, $val->getName()); } return $res; } /** * Has method specified annotation? * @param string * @return bool */ public function hasAnnotation($name) { $res = AnnotationsParser::getAll($this); return !empty($res[$name]); } /** * Returns an annotation value. * @param string * @return IAnnotation|null */ public function getAnnotation($name) { $res = AnnotationsParser::getAll($this); return isset($res[$name]) ? end($res[$name]) : null; } /** * Returns all annotations. * @return IAnnotation[][] */ public function getAnnotations() { return AnnotationsParser::getAll($this); } /** * Returns value of annotation 'description'. * @return string */ public function getDescription() { return $this->getAnnotation('description'); } } __halt_compiler();----SIGNATURE:----sklH0icEMZMJ8fmgUcRSlXzTAfdYWpEv3erfIxHURIAREQj6XIS+rEKnrdCRZyrqTD249pJP3a017l9KLnGR/ZBa4oOBg6vZPBCjVIB5BSg+qf8Eq++Omjjo/Y9zv94slFS5BKPzmTgImXYMnU2tY/CELJgebK4XeT7WuvnH42LclD5gSqJIcb2hEewiWv7nqjYeZKCt0Nw1+heENMmCXSCl9OUTz8T149IPbwz9ZfADmm9nqWkPE7CRP9w/unyJX3SnDgma6I8LAodbD4wi2EyRwbFixryZ/QxG3w69qujB7NmW+eJZpM8hruNKcqzpP6mKa1jqQJeQp3dq6m/UfqUXtoaaDoXc3qQjJmRHM7gIG5pOZmqu5CT2kpSqwgTqf6Bxf3p9sxw9ETSPU+KupS65GxGo3OpEDGr/XhFYGKLVftzxqvgpjxWpRKr34tHxgnqbWXwAEOuMpvZTtHXvdmZ/yppRYegs3j1OEY+yrbiVgjePy5sckLfA5tZzywK7fv9Wo+9Vm1FWl6xWrpAg1Nwt6iPtIKJgFbtuGOABrLM70GhQsYcqXA2S2R88wjUFwMumK1GO+FGcVtKYDgHBu7+Samfdjsq9iD24tCa9AFiggaZAtPV4cLmOswARuwtHPBv9G3B4yg+qOg/Vvfqedbk2+ozvSAOMo/RtqIe/Xsw=----ATTACHMENT:----NTU3NzM5NDM0MTQ0NDU5NyA5MjY2NjEzMzcwMjUxMDY2IDYzMDkyNzM3OTc0OTgzNDA=