ReflectionClass::isSubclassOf

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

public function isSubclassOf(
  mixed $class,
): bool;

Checks if the class is a subclass of a specified class or implements a specified interface.

Parameters

  • mixed $class

Returns

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