PhpParser\Parser\Multiple::__construct PHP Method

__construct() public method

Parsers will be invoked in the order they're provided to the constructor. If one of the parsers runs without throwing, it's output is returned. Otherwise the exception that the first parser generated is thrown.
public __construct ( array $parsers )
$parsers array
    public function __construct(array $parsers)
    {
        $this->parsers = $parsers;
    }