ReflectionClass::isSubclassOf

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

Description

public function isSubclassOf(
  $cls,
): bool

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

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

Parameters

  • $cls

Return Values

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