getName(); } /** * @param string * @return bool */ public function is($type) { return is_a($this->getName(), $type, true); } /** * @return Method|null */ public function getConstructor() { return ($ref = parent::getConstructor()) ? Method::from($this->getName(), $ref->getName()) : null; } /** * @return Extension|null */ public function getExtension() { return ($name = $this->getExtensionName()) ? new Extension($name) : null; } /** * @return static[] */ public function getInterfaces() { $res = []; foreach (parent::getInterfaceNames() as $val) { $res[$val] = new static($val); } return $res; } /** * @return Method */ public function getMethod($name) { return new Method($this->getName(), $name); } /** * @return Method[] */ public function getMethods($filter = -1) { foreach ($res = parent::getMethods($filter) as $key => $val) { $res[$key] = new Method($this->getName(), $val->getName()); } return $res; } /** * @return static|null */ public function getParentClass() { return ($ref = parent::getParentClass()) ? new static($ref->getName()) : null; } /** * @return Property[] */ public function getProperties($filter = -1) { foreach ($res = parent::getProperties($filter) as $key => $val) { $res[$key] = new Property($this->getName(), $val->getName()); } return $res; } /** * @return Property */ public function getProperty($name) { return new Property($this->getName(), $name); } /** * Has class 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:----YUQ6NmS8CMRbnc4Pa1QSe7Qg94Ey9pGG47XJIsz/RYVb4vg52a7qcZ+CEB3SaX90avgBKMLgO7JxafEz+g6nMEXngdFuRUI3doo4M7/X9q1OkQC8CP7fsaMdS+Hq2i0bVjiOUsjohAaHfmJUOkQEOFoKdwCu0+ij5xA6i0C9BwFrbat3+Bqll1IGvPWzJkrjfW29sc6PLqpW6/7uuR7rwQRbsS7TnTA+SAOO6raB4aLNIRCu1tyAMaYkP8ohzewMC78sWpabaGAkPtXmY+55KnBGJOFaA6lmOTU0WSLdFix0FmDUYStATN34tuefL8TGtF+8QRt6FJSscHDleApGbw9/bW+7Rez7NZwgJYZLqMct3vP9EqjMH3IWPHoD/XQPJlSLCdNZMbsNtZvv3eqXAecgkJq3MTCpVXzJSa9tCKJOjAx/2ZrAS1cIdsr1yrI9RgwCyBg4OYQB1N30qQ34yMi7vy69iSNYnrra7PKTgR4F2jRjqb3ayF8gdyMERdjZkyaIKd9IdkRZjL89zN8y4Mtv6bOZ3KiTLlQHDWXkDLPzgtWaB2qq/e8siad6LO3NdiNGE/jLIw6OVtfUQ13sOZHRwOLYmXLVfjg0Z6cl4DpIquD8D6AG97/8v8176MPjtvBXRG/DrI0qQczei2SvDe3ptZzgR2fQEVeOUWwMVms=----ATTACHMENT:----MTcwOTU0MDMzMzcxMjgzMiAxNDg0NzcwODY5MDAzMzQ1IDMxMzQyNzg2OTE0MTY0NjM=