src/Datatype/StringClass.php
public function hasSuffix(string $suffix):bool {
        if (0 !== $this->getLength() && "" === $suffix) return false;
        return (substr($this->getValue(), -1 * strlen($suffix), strlen($suffix)) === $suffix);
    }
public function hasSuffix(string $suffix):bool {
        if (0 !== $this->getLength() && "" === $suffix) return false;
        return (substr($this->getValue(), -1 * strlen($suffix), strlen($suffix)) === $suffix);
    }
public function hasSuffix ( string $ suffix ) : bool { if ( 0 !== $ this -> getLength ( ) && "" === $ suffix ) return false ; return ( substr ( $ this -> getValue ( ) , - 1 * strlen ( $ suffix ) , strlen ( $ suffix ) ) === $ suffix ) ; }
checks a suffix

@param string $suffix
@return bool
checks a suffix