| 1 | <?php |
||
| 7 | final class Boolean implements ValueObjectInterface |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var bool |
||
| 11 | */ |
||
| 12 | private $value; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param bool $nativeValue |
||
| 16 | * @return self |
||
| 17 | */ |
||
| 18 | 19 | public static function fromNative($nativeValue): self |
|
| 23 | |||
| 24 | 4 | public function toNative(): bool |
|
| 28 | |||
| 29 | 1 | public function equals(ValueObjectInterface $otherValue): bool |
|
| 33 | |||
| 34 | 1 | public function __toString(): string |
|
| 38 | |||
| 39 | 1 | public function isTrue(): bool |
|
| 43 | |||
| 44 | 1 | public function isFalse(): bool |
|
| 48 | |||
| 49 | 1 | public function negate(): self |
|
| 55 | |||
| 56 | 19 | private function __construct(bool $value) |
|
| 60 | } |
||
| 61 |