ReflectionClass::implementsInterface

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

public function implementsInterface(
  string $interface,
): bool;

Checks whether it implements an interface.

Parameters

  • string $interface

Returns

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