src/Utilities/Reflection.php
public static function isChildOfClass($childClass, $parentClass)
    {
        $childClassName = self::getClassName($childClass);
        $parentClassName = self::getClassName($parentClass);

        $parents = class_parents($childClassName);

        if (is_array($parents) && 0 < count($parents)) {
            return in_array($parentClassName, $parents, true);
        }

        return false;
    }
public static function isChildOfClass($childClass, $parentClass)
    {
        $childClassName = self::getClassName($childClass);
        $parentClassName = self::getClassName($parentClass);

        $parents = class_parents($childClassName);

        if (is_array($parents) && 0 < count($parents)) {
            return in_array($parentClassName, $parents, true);
        }

        return false;
    }
public static function isChildOfClass ( $ childClass , $ parentClass ) { $ childClassName = self :: getClassName ( $ childClass ) ; $ parentClassName = self :: getClassName ( $ parentClass ) ; $ parents = class_parents ( $ childClassName ) ; if ( is_array ( $ parents ) && 0 < count ( $ parents ) ) { return in_array ( $ parentClassName , $ parents , true ) ; } return false ; }
Returns information if given child class is a subclass of given parent class

@param array|object|string $childClass  The child class. An array of objects, namespaces, object or namespace.
@param array|object|string $parentClass The parent class. An array of objects, namespaces, object or namespace.
@return bool
Returns information if given child class is a subclass of given parent class