src/Library/Helper/Code.php
public static function extendsClass($class_name, $mother_name)
    {
        if (is_object($class_name)) {
            $class_name = get_class($class_name);
        }
        if (class_exists($class_name)) {
            return (bool) is_subclass_of($class_name, $mother_name);
        }
        return false;
    }
public static function extendsClass($class_name, $mother_name)
    {
        if (is_object($class_name)) {
            $class_name = get_class($class_name);
        }
        if (class_exists($class_name)) {
            return (bool) is_subclass_of($class_name, $mother_name);
        }
        return false;
    }
public static function extendsClass ( $ class_name , $ mother_name ) { if ( is_object ( $ class_name ) ) { $ class_name = get_class ( $ class_name ) ; } if ( class_exists ( $ class_name ) ) { return ( bool ) is_subclass_of ( $ class_name , $ mother_name ) ; } return false ; }
Check if a class extends a certain class

@param string|object $class_name The class name to test or a full object of this class
@param string $mother_name The class name to extend

@return bool
Check if a class extends a certain class