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