(PHP 5)
ReflectionClass::isFinal — Checks if class is final
Checks if a class is final.
This function has no parameters.
Returns TRUE
on success or FALSE
on failure.
Example #1 ReflectionClass::isAbstract() example
<?php
class TestClass { }
final class TestFinalClass { }
$normalClass = new ReflectionClass('TestClass');
$finalClass = new ReflectionClass('TestFinalClass');
var_dump($normalClass->isFinal());
var_dump($finalClass->isFinal());
?>
The above example will output:
bool(false) bool(true)