public static function format(string $string, array $values, $options = null) : string
    {
        if ($options instanceof Settings) {
            $settings = $options;
        } elseif (is_array($options)) {
            $settings = new Settings($options);
        } else {
            $settings = new Settings();
        }

        $settings->hasRequiredSettings();

        return self::parseString($string, $values, $settings);
    }
public static function format(string $string, array $values, $options = null) : string
    {
        if ($options instanceof Settings) {
            $settings = $options;
        } elseif (is_array($options)) {
            $settings = new Settings($options);
        } else {
            $settings = new Settings();
        }

        $settings->hasRequiredSettings();

        return self::parseString($string, $values, $settings);
    }
public static function format ( string $ string , array $ values , $ options = null ) : string { if ( $ options instanceof Settings ) { $ settings = $ options ; } elseif ( is_array ( $ options ) ) { $ settings = new Settings ( $ options ) ; } else { $ settings = new Settings ( ) ; } $ settings -> hasRequiredSettings ( ) ; return self :: parseString ( $ string , $ values , $ settings ) ; }
Parse string to formatted output.

@param string                                 $string
@param array                                  $values
@param \Laranix\Support\IO\Str\Settings|array $options

@return string
Parse string to formatted output .