| Conditions | 3 |
| Paths | 3 |
| Total Lines | 22 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 43 | public function __construct( |
||
| 44 | $templateId, |
||
| 45 | array $templateConfig, |
||
| 46 | RendererInterface $renderer, |
||
| 47 | ViewModel $layout |
||
| 48 | ) { |
||
| 49 | if (!isset($templateConfig['subject'])) { |
||
| 50 | throw new Exception\TemplateException("Template subject not configured."); |
||
| 51 | } |
||
| 52 | |||
| 53 | $this->subject = $templateConfig['subject']; |
||
| 54 | |||
| 55 | if (!isset($templateConfig['template'])) { |
||
| 56 | throw new Exception\TemplateException("Template template not configured."); |
||
| 57 | } |
||
| 58 | |||
| 59 | $this->id = $templateId; |
||
| 60 | $this->template = $templateConfig['template']; |
||
| 61 | $this->layout = $layout; |
||
| 62 | $this->layoutId = $templateConfig['layout']; |
||
| 63 | $this->renderer = $renderer; |
||
| 64 | } |
||
| 65 | |||
| 104 | } |