paragraphNode = $paragraphNode; $this->templateRenderer = $templateRenderer; } public function render(): string { return $this->templateRenderer->render('paragraph.tex.twig', [ 'paragraphNode' => $this->paragraphNode, ]); } }