<?php
/**
 * @copyright (c) Kufer Software GmbH, Oderstraße 7, D-84453 Mühldorf
 */

namespace Kufer\Web\KuferTools\Basis\Presenter;

abstract class EMailPresenter
{
  protected $emailData;

  public function __construct($emailData)
  {
    $this->emailData = $emailData;
  }

  abstract protected function getView();

  abstract protected function getViewModel();

  public function getSubject()
  {
    $view = $this->getView();

    return \trim($view->getHeader());
  }

  public function getBody()
  {
    $view = $this->getView();

    return $view->getBody();
  }
}