public function getImplementedMethod() { foreach ($this->getDeclaringClass()->getOwnInterfaces() as $interface) { if ($interface->hasMethod($this->getName())) { return $interface->getMethod($this->getName()); } } return null; }