Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| Iframe | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| __toString | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Cosray\Value; |
| 6 | |
| 7 | use Override; |
| 8 | |
| 9 | /** |
| 10 | * The stored embed code, unescaped: an iframe field holds trusted |
| 11 | * editor input by design and is unusable as an embed otherwise. |
| 12 | */ |
| 13 | class Iframe extends Text |
| 14 | { |
| 15 | #[Override] |
| 16 | public function __toString(): string |
| 17 | { |
| 18 | return $this->raw(); |
| 19 | } |
| 20 | } |