Total Complexity | 4 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Coverage | 33.33% |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
5 | final class StringNode extends Node |
||
6 | { |
||
7 | private $value; |
||
8 | |||
9 | 64 | public function __construct(?string $value = '', ?Document $ownerDocument = null) |
|
10 | { |
||
11 | 64 | parent::__construct($ownerDocument); |
|
12 | |||
13 | 64 | $this->value = $value ?? ''; |
|
14 | } |
||
15 | |||
16 | public function getValue(): string |
||
17 | { |
||
18 | return $this->value; |
||
19 | } |
||
20 | |||
21 | public function setValue(string $value): void |
||
22 | { |
||
23 | $this->value = $value; |
||
24 | } |
||
25 | |||
26 | public function jsonSerialize(): string |
||
29 | } |
||
30 | } |
||
31 |