ReflectionClass::isInterface
(PHP 5)
ReflectionClass::isInterface — Checks if the class is an interface
Descrição
public bool ReflectionClass::isInterface
( void
)
Checks whether the class is an interface.
Parâmetros
Esta função não possui parâmetros.
Valor Retornado
Retorna TRUE em caso de sucesso ou FALSE em caso de falha.
Exemplos
Example #1 Basic usage of ReflectionClass::isInterface()
<?php
interface SomeInterface {
public function interfaceMethod();
}
$class = new ReflectionClass('SomeInterface');
var_dump($class->isInterface());
?>
O exemplo acima irá imprimir:
bool(true)