public static function getExtends($objectOrClass): array
    {
        if (is_object($objectOrClass)) {
            $objectOrClass = get_class($objectOrClass);
        }
        return array_values(class_parents($objectOrClass));
    }
public static function getExtends($objectOrClass): array
    {
        if (is_object($objectOrClass)) {
            $objectOrClass = get_class($objectOrClass);
        }
        return array_values(class_parents($objectOrClass));
    }
public static function getExtends ( $ objectOrClass ) : array { if ( is_object ( $ objectOrClass ) ) { $ objectOrClass = get_class ( $ objectOrClass ) ; } return array_values ( class_parents ( $ objectOrClass ) ) ; }
Get extends.

@param object|string $objectOrClass
@return string[]
Get extends .