public static function format($format, ...$args): self
    {
        Assert::typeOf(['string', __CLASS__], $format);

        return new static(sprintf((string) $format, ...$args));
    }
public static function format($format, ...$args): self
    {
        Assert::typeOf(['string', __CLASS__], $format);

        return new static(sprintf((string) $format, ...$args));
    }
public static function format ( $ format , ... $ args ) : self { Assert :: typeOf ( [ 'string' , __CLASS__ ] , $ format ) ; return new static ( sprintf ( ( string ) $ format , ... $ args ) ) ; }
Returns a formatted string using the given format and arguments

@param static|string $format
@param mixed         ...$args
@return static
@throws InvalidArgumentException
@throws TypeError
Returns a formatted string using the given format and arguments