| Total Complexity | 5 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class BooleanObject implements Serializable |
||
| 14 | { |
||
| 15 | /** @var bool */ |
||
| 16 | private $boolean; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param bool $boolean The boolean value of the object. |
||
| 20 | */ |
||
| 21 | public function __construct(bool $boolean) |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Converts the object into a scalar PHP boolean value. |
||
| 28 | * |
||
| 29 | * @return bool The boolean value of the object. |
||
| 30 | */ |
||
| 31 | public function toBoolean(): bool |
||
| 34 | } |
||
| 35 | |||
| 36 | public function serialize(): string |
||
| 39 | } |
||
| 40 | |||
| 41 | public function unserialize($serialized): void |
||
| 51 |