ReflectionClass::implementsInterface

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

Description

public function implementsInterface(
  $cls,
): bool

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

Checks whether it implements an interface.

Parameters

  • $cls

Return Values

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