value = $value; } /** * This is part of the JsonSerializable interface, allows the object to be * serialized into a boolean. * * @return bool */ public function jsonSerialize(): bool { return $this->value; } }