public function parseString($str) {
        $parser = (new \PhpParser\ParserFactory())->create(\PhpParser\ParserFactory::PREFER_PHP7);
        $this->ast = $parser->parse($str);
        return $this;
    }
public function parseString($str) {
        $parser = (new \PhpParser\ParserFactory())->create(\PhpParser\ParserFactory::PREFER_PHP7);
        $this->ast = $parser->parse($str);
        return $this;
    }
public function parseString ( $ str ) { $ parser = ( new \ PhpParser \ ParserFactory ( ) ) -> create ( \ PhpParser \ ParserFactory :: PREFER_PHP7 ) ; $ this -> ast = $ parser -> parse ( $ str ) ; return $ this ; }
Parses a PHP string.
@param string $str
@return PhpParser
Parses a PHP string .