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

namespace Kufer\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();
  }
}