public function postfix(string $value, string $postfix): string
    {
        if (substr($value, strlen($value) - strlen($postfix)) === $postfix) {
            return $value;
        }

        return $value . $postfix;
    }
public function postfix(string $value, string $postfix): string
    {
        if (substr($value, strlen($value) - strlen($postfix)) === $postfix) {
            return $value;
        }

        return $value . $postfix;
    }
public function postfix ( string $ value , string $ postfix ) : string { if ( substr ( $ value , strlen ( $ value ) - strlen ( $ postfix ) ) === $ postfix ) { return $ value ; } return $ value . $ postfix ; }
Add an additional postfix if the string doesn't end with it.
@param string $value
@param string $postfix
@return string
Add an additional postfix if the string doesn t end with it .