setForm($file, $folder); $this->setView($file, $folder); } /** * @param string $file * @param string $folder */ private function setForm(string $file, string $folder): void { $this->form = new TemplatePathInformation($file, $folder, self::FORM_FOLDER); } /** * @param string $file * @param string $folder */ private function setView(string $file, string $folder): void { $this->view = new TemplatePathInformation($file, $folder, self::VIEW_FOLDER); } /** * {@inheritdoc} * * @see \App\Domain\TemplateManagement\TemplatePathFormAndViewInterface::getForm() */ public function getForm(): TemplatePathInformationInterface { return $this->form; } /** * {@inheritdoc} * * @see \App\Domain\TemplateManagement\TemplatePathFormAndViewInterface::getView() */ public function getView(): TemplatePathInformation { return $this->view; } /** * {@inheritdoc} * * @see \App\Domain\TemplateManagement\ReloadTypeInterface::reloadType() */ public function reloadType(string $type): void { $this->view->reloadType($type); $this->form->reloadType($type); } }