* Date: 26/04/2017 11:04 */ namespace TemplateSwitcher\Events; use Thelia\Core\Event\ActionEvent; use Thelia\Core\Template\TemplateDefinition; class TemplateSwitcherEvent extends ActionEvent { const SWITCH_TEMPLATE_EVENT = "templateswitcher.switch-to"; /** @var string */ protected $templateName; protected $templateType = TemplateDefinition::FRONT_OFFICE; /** * TemplateSwitcherEvent constructor. * @param string $templateName */ public function __construct($templateName) { $this->templateName = $templateName; } /** * @return string */ public function getTemplateName() { return $this->templateName; } /** * @param string $templateName * @return $this */ public function setTemplateName($templateName) { $this->templateName = $templateName; return $this; } /** * @return int */ public function getTemplateType() { return $this->templateType; } /** * @param int $templateType * @return $this */ public function setTemplateType($templateType) { $this->templateType = $templateType; return $this; } }