ReflectionClass::isInterface
(PHP 5)
ReflectionClass::isInterface — Checks if the class is an interface
Descrierea
public bool ReflectionClass::isInterface
( void
)
Checks whether the class is an interface.
Parametri
Această funcție nu are parametri.
Valorile întoarse
Întoarce valoarea TRUE în cazul
succesului sau FALSE în cazul eșecului.
Exemple
Example #1 Basic usage of ReflectionClass::isInterface()
<?php
interface SomeInterface {
public function interfaceMethod();
}
$class = new ReflectionClass('SomeInterface');
var_dump($class->isInterface());
?>
Exemplul de mai sus va afișa:
bool(true)
There are no user contributed notes for this page.
