_value; } /** * @param bool $value */ public function setBool($value) { $this->_value = $value; } function jsonSerialize() { return $this->_value; } public static function jsonDeserialize($json) { $bool = null; if (is_bool($json)) { $bool = $json; } if (is_string($json)) { if (strtolower($json) === "true" || strtolower($json) === "false") { $bool = (strtolower($json) === "true"); } } if (is_null($bool)) { throw new LuDboDeserializeException("Invalid bool value"); } $val = new self(); $val->setBool($bool); return $val; } public static function generateSample() { return "sample string"; } }