<?php
/**
 * @copyright (c) Kufer Software GmbH, Loisachstrasse 4, D-84453 Mühldorf
 */

namespace Kufer\KuferTools\Utils\StatusMessages;

class StatusMessageView extends \Kufer\KuferTools\Basis\View\ViewSight
{
  public function getTemplatePathRelative()
  {
    return 'basis/statusmeldungen.sgt';
  }

  protected function getDefaultDataModulArray()
  {
    $dm = new class() extends \Datamodul {
      public $msgBoxType;
      public $message;
    };

    $dm->msgBoxType = $this->viewModel->msgBoxType;
    $dm->message = $this->viewModel->message;

    return array($dm);
  }
}

class StatusMessageViewModel
{
  public $msgBoxType;
  public $message;
}