ReflectionMethod::getDeclaringClass

( excerpt from http://php.net/manual/en/reflectionmethod.getdeclaringclass.php )

public function getDeclaringClass();

Gets the declaring class for the reflected method.

Returns

  • ReflectionClass - A ReflectionClass object of the class that the reflected method is part of.