| Total Complexity | 3 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class TemplatedContent implements Content\Contracts\TemplatedContent |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | protected $templateId; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var array |
||
| 18 | */ |
||
| 19 | protected $templateData; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param string $templateId |
||
| 23 | * @param array $templateData |
||
| 24 | */ |
||
| 25 | 1 | public function __construct(string $templateId, array $templateData) |
|
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | 1 | public function getTemplateId(): string |
|
| 35 | { |
||
| 36 | 1 | return $this->templateId; |
|
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return array|string[] |
||
| 41 | */ |
||
| 42 | 1 | public function getTemplateData(): array |
|
| 45 | } |
||
| 46 | } |
||
| 47 |