| Total Complexity | 4 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | class RenderedContent implements RenderedContentInterface |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var Document |
||
| 22 | * |
||
| 23 | * @psalm-readonly |
||
| 24 | */ |
||
| 25 | private $document; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var string |
||
| 29 | * |
||
| 30 | * @psalm-readonly |
||
| 31 | */ |
||
| 32 | private $html; |
||
| 33 | |||
| 34 | 2856 | public function __construct(Document $document, string $html) |
|
| 35 | { |
||
| 36 | 2856 | $this->document = $document; |
|
| 37 | 2856 | $this->html = $html; |
|
| 38 | 2856 | } |
|
| 39 | |||
| 40 | 12 | public function getDocument(): Document |
|
| 41 | { |
||
| 42 | 12 | return $this->document; |
|
| 43 | } |
||
| 44 | |||
| 45 | 12 | public function getContent(): string |
|
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @psalm-mutation-free |
||
| 52 | */ |
||
| 53 | 2850 | public function __toString(): string |
|
| 58 |