/** * Get the interface for a method * @param string $methodName name of the method * @return boolean|string a class name if the method is implemented from a interface, false otherwise */ public function getMethodInterface($methodName) { $interfaces = $this->getInterfaceNames(); foreach ($interfaces as $interface) { $interfaceReflection = new self($interface); if ($interfaceReflection->hasMethod($methodName)) { return $interface; } } return false; }