ReflectionClass::isInterface

( excerpt from http://php.net/manual/en/reflectionclass.isinterface.php )

public function isInterface(): bool;

Checks whether the class is an interface.

Returns

  • mixed - Returns TRUE on success or FALSE on failure.