(PHP 5)
ReflectionClass::isInterface — Checks if the class is an interface
Checks whether the class is an interface.
В цієї функції немає параметрів.
Повертає TRUE
в успішному випадку або FALSE
в разі помилки.
Приклад #1 Basic usage of ReflectionClass::isInterface()
<?php
interface SomeInterface {
public function interfaceMethod();
}
$class = new ReflectionClass('SomeInterface');
var_dump($class->isInterface());
?>
Наведений вище приклад виведе:
bool(true)