public function __construct(Parser $parser, $basePath) { $this->parser = $parser; $this->basePath = $basePath; }