/** * {@inheritdoc} */ public function __set($property, $value) { switch ($property) { case 'template': $this->type = Utilities::getContentType($value); case 'data': case 'withLayout': $this->{$property} = $value; return; } parent::__set($property, $value); }