src/Decorator/Parser/ParserFactory.php
public static function getInstance(System $system, array $current, Tags $tags)
    {
        if ($system->hasAnsiSupport()) {
            return new Ansi($current, $tags);
        }

        return new NonAnsi($current, $tags);
    }
public static function getInstance(System $system, array $current, Tags $tags)
    {
        if ($system->hasAnsiSupport()) {
            return new Ansi($current, $tags);
        }

        return new NonAnsi($current, $tags);
    }
public static function getInstance ( System $ system , array $ current , Tags $ tags ) { if ( $ system -> hasAnsiSupport ( ) ) { return new Ansi ( $ current , $ tags ) ; } return new NonAnsi ( $ current , $ tags ) ; }
Get an instance of the appropriate Parser class

@param System $system
@param array $current
@param Tags $tags
@return Parser
Get an instance of the appropriate Parser class