_value; } /** * @param int $value */ public function setInt($value) { $this->_value = $value; } function jsonSerialize() { return $this->_value; } public static function jsonDeserialize($json) { if (!is_numeric($json) || intval($json) != $json) { throw new LuDboDeserializeException("Invalid integer value"); } $val = new self(); $val->setInt(intval($json)); return $val; } public static function generateSample() { return 42; } }