(PHP 5, PHP 7)
Checks if class is abstract
public bool ReflectionClass::isAbstract ( void )
Checks if the class is abstract.
Returns:
Returns TRUE
on success or FALSE
on failure.
Examples:
ReflectionClass::isAbstract() example
1 2 3 4 5 6 7 8 9 10 | <?php class TestClass { } abstract class TestAbstractClass { } $testClass = new ReflectionClass( 'TestClass' ); $abstractClass = new ReflectionClass( 'TestAbstractClass' ); var_dump( $testClass ->isAbstract()); var_dump( $abstractClass ->isAbstract()); ?> |
The above example will output:
bool(false) bool(true)
See also:
Please login to continue.