public function addToQueue(TemplateGeneratorInterface $templateGenerator) { $this->queue[] = $templateGenerator; }