GoLang ReflectionClass::isFinal

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



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

PHP ReflectionClass::isFinal

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

ReflectionClass::isFinal

(PHP 5, PHP 7)

ReflectionClass::isFinalChecks if class is final

Description

public bool ReflectionClass::isFinal ( void )

Checks if a class is final.

Parameters

This function has no parameters.

Return Values

Returns TRUE on success or FALSE on failure.

Examples

Example #1 ReflectionClass::isFinal() 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)

See Also