fix a wrong typed var name

argument $factory is typed wrong.
```
    public function setParserFactory($factory)
    {
        $this->parserFactory = $parserFactory;
    }
```