_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; } else if (is_string($json)) { $json = strtolower($json); if ($json == "true" || $json == "false") { $bool = ($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 true; } }