/** * @return \Donquixote\HastyReflectionCommon\Reflection\FunctionLike\MethodReflectionInterface[] */ protected function findMethods() { $methods = $this->ownBody->getOwnMethods(); $parentClass = $this->extends->getParentClass(); if (NULL !== $parentClass) { $methods += $parentClass->getMethods(); } foreach ($this->interfacesAll->getAllInterfaces(FALSE) as $interface) { $methods += $interface->getOwnMethods(); } return $methods; }
/** * @return \Donquixote\HastyReflectionCommon\Reflection\FunctionLike\MethodReflectionInterface[] */ function getOwnMethods() { return $this->ownBody->getOwnMethods(); }