/** * Add a method to the reflected class. * * @param ReflectionMethod $method */ public function addMethod(ReflectionMethod $method) { $this->methods[$method->getShortName()] = $method; $method->setDeclaringClassLike($this); $method->setFilename($this->getFileName()); return $this; }