ReflectionClass::isInterface
(PHP 5)
ReflectionClass::isInterface — Checks if the class is an interface
Descrizione
public bool ReflectionClass::isInterface
( void
)
Checks whether the class is an interface.
Elenco dei parametri
Questa funzione non contiene parametri.
Valori restituiti
Restituisce TRUE in caso di successo, FALSE in caso di fallimento.
Esempi
Example #1 Basic usage of ReflectionClass::isInterface()
<?php
interface SomeInterface {
public function interfaceMethod();
}
$class = new ReflectionClass('SomeInterface');
var_dump($class->isInterface());
?>
Il precedente esempio visualizzerĂ :
bool(true)
There are no user contributed notes for this page.
