SimpleReflection::isInterface PHP Method

isInterface() public method

Trivially determines if the class is an interface.
public isInterface ( )
    public function isInterface()
    {
        $reflection = new ReflectionClass($this->interface);
        return $reflection->isInterface();
    }

Usage Example

Esempio n. 1
0
 function testDetectionOfInterfacesAlwaysFalse()
 {
     $reflection = new SimpleReflection('AnyOldThing');
     $this->assertFalse($reflection->isAbstract());
     $this->assertFalse($reflection->isInterface());
 }
All Usage Examples Of SimpleReflection::isInterface