public function getParserFactory(): ?ParserFactory
    {
        if (!$this->hasParserFactory()) {
            $this->setParserFactory($this->getDefaultParserFactory());
        }
        return $this->parserFactory;
    }
public function getParserFactory(): ?ParserFactory
    {
        if (!$this->hasParserFactory()) {
            $this->setParserFactory($this->getDefaultParserFactory());
        }
        return $this->parserFactory;
    }
public function getParserFactory ( ) : ? ParserFactory { if ( ! $ this -> hasParserFactory ( ) ) { $ this -> setParserFactory ( $ this -> getDefaultParserFactory ( ) ) ; } return $ this -> parserFactory ; }
Get parser factory

If no parser factory has been set, this method will
set and return a default parser factory, if any such
value is available

@see getDefaultParserFactory()

@return ParserFactory|null parser factory or null if none parser factory has been set
Get parser factory