SimpleReflection::getInterfaceMethods PHP Method

getInterfaceMethods() public method

Gets the list of methods for the implemented interfaces only.
public getInterfaceMethods ( )
    public function getInterfaceMethods()
    {
        $methods = array();
        foreach ($this->getInterfaces() as $interface) {
            $methods = array_merge($methods, get_class_methods($interface));
        }
        return array_unique($methods);
    }

Usage Example

 function testCanSeparateInterfaceMethodsFromOthers()
 {
     $reflection = new SimpleReflection('AnyOldImplementation');
     $this->assertIdentical($reflection->getMethods(), array('aMethod', 'extraMethod'));
     $this->assertIdentical($reflection->getInterfaceMethods(), array('aMethod'));
 }