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