GoLang ReflectionClass::isAbstract

request it (291)
GoLang replacement for PHP's ReflectionClass::isAbstract [edit | history]



Do you know a GoLang replacement for PHP's ReflectionClass::isAbstract? Write it!

PHP ReflectionClass::isAbstract

PHP original manual for ReflectionClass::isAbstract [ show | php.net ]

ReflectionClass::isAbstract

(PHP 5, PHP 7)

ReflectionClass::isAbstractChecks if class is abstract

Description

public bool ReflectionClass::isAbstract ( void )

Checks if the class is abstract.

Parameters

This function has no parameters.

Return Values

Returns TRUE on success or FALSE on failure.

Examples

Example #1 ReflectionClass::isAbstract() example

<?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