public function getParser() : ParserInterface
    {
        if (null === $this->parser) {
            $patternHelper = new Parser\Helper\GetPattern($this->cache, $this->logger);
            $dataHelper = new Parser\Helper\GetData($this->cache, $this->logger, new Quoter());

            $this->parser = new Parser\Ini($patternHelper, $dataHelper, $this->formatter);
        }

        return $this->parser;
    }
public function getParser() : ParserInterface
    {
        if (null === $this->parser) {
            $patternHelper = new Parser\Helper\GetPattern($this->cache, $this->logger);
            $dataHelper = new Parser\Helper\GetData($this->cache, $this->logger, new Quoter());

            $this->parser = new Parser\Ini($patternHelper, $dataHelper, $this->formatter);
        }

        return $this->parser;
    }
public function getParser ( ) : ParserInterface { if ( null === $ this -> parser ) { $ patternHelper = new Parser \ Helper \ GetPattern ( $ this -> cache , $ this -> logger ) ; $ dataHelper = new Parser \ Helper \ GetData ( $ this -> cache , $ this -> logger , new Quoter ( ) ) ; $ this -> parser = new Parser \ Ini ( $ patternHelper , $ dataHelper , $ this -> formatter ) ; } return $ this -> parser ; }
returns an instance of the used parser class

@return \BrowscapPHP\Parser\ParserInterface
returns an instance of the used parser class