public static function isSuffixed(string $data, string $suffix, string $separator = ''): bool
    {
        if ($separator !== '') {
            $data = trim($data, $separator);
        }
        return static::substr($data, -static::length($suffix)) === $suffix;
    }
public static function isSuffixed(string $data, string $suffix, string $separator = ''): bool
    {
        if ($separator !== '') {
            $data = trim($data, $separator);
        }
        return static::substr($data, -static::length($suffix)) === $suffix;
    }
public static function isSuffixed ( string $ data , string $ suffix , string $ separator = '' ) : bool { if ( $ separator !== '' ) { $ data = trim ( $ data , $ separator ) ; } return static :: substr ( $ data , - static :: length ( $ suffix ) ) === $ suffix ; }
Is suffixed.

@param string $data
@param string $suffix
@param string $separator Default ''.
@return bool
Is suffixed .