| Total Complexity | 3 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class Script extends AbstractComponent |
||
| 9 | { |
||
| 10 | |||
| 11 | private string $script; |
||
| 12 | |||
| 13 | public function __construct(string $script) |
||
| 14 | { |
||
| 15 | $this->script = $script; |
||
| 16 | } |
||
| 17 | |||
| 18 | public function show(): string |
||
| 19 | { |
||
| 20 | return '<script>' . $this->script . '</script>'; |
||
| 21 | } |
||
| 22 | |||
| 23 | public static function new(string $script): self |
||
| 26 | } |
||
| 27 | } |