add new files for format test model

This commit is contained in:
wing328
2016-04-11 22:11:53 +08:00
parent 1c14fc7291
commit 68cb030609
20 changed files with 2240 additions and 0 deletions

View File

@@ -0,0 +1,494 @@
<?php
/**
* FormatTest
*
* PHP version 5
*
* @category Class
* @package Swagger\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
/**
* Copyright 2016 SmartBear Software
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen
* Do not edit the class manually.
*/
namespace Swagger\Client\Model;
use \ArrayAccess;
/**
* FormatTest Class Doc Comment
*
* @category Class
* @description
* @package Swagger\Client
* @author http://github.com/swagger-api/swagger-codegen
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache Licene v2
* @link https://github.com/swagger-api/swagger-codegen
*/
class FormatTest implements ArrayAccess
{
/**
* The original name of the model.
* @var string
*/
static $swaggerModelName = 'format_test';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
static $swaggerTypes = array(
'integer' => 'int',
'int32' => 'int',
'int64' => 'int',
'number' => 'float',
'float' => 'float',
'double' => 'double',
'string' => 'string',
'byte' => 'string',
'binary' => 'string',
'date' => '\DateTime',
'date_time' => 'string'
);
static function swaggerTypes() {
return self::$swaggerTypes;
}
/**
* Array of attributes where the key is the local name, and the value is the original name
* @var string[]
*/
static $attributeMap = array(
'integer' => 'integer',
'int32' => 'int32',
'int64' => 'int64',
'number' => 'number',
'float' => 'float',
'double' => 'double',
'string' => 'string',
'byte' => 'byte',
'binary' => 'binary',
'date' => 'date',
'date_time' => 'dateTime'
);
static function attributeMap() {
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
static $setters = array(
'integer' => 'setInteger',
'int32' => 'setInt32',
'int64' => 'setInt64',
'number' => 'setNumber',
'float' => 'setFloat',
'double' => 'setDouble',
'string' => 'setString',
'byte' => 'setByte',
'binary' => 'setBinary',
'date' => 'setDate',
'date_time' => 'setDateTime'
);
static function setters() {
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
static $getters = array(
'integer' => 'getInteger',
'int32' => 'getInt32',
'int64' => 'getInt64',
'number' => 'getNumber',
'float' => 'getFloat',
'double' => 'getDouble',
'string' => 'getString',
'byte' => 'getByte',
'binary' => 'getBinary',
'date' => 'getDate',
'date_time' => 'getDateTime'
);
static function getters() {
return self::$getters;
}
/**
* $integer
* @var int
*/
protected $integer;
/**
* $int32
* @var int
*/
protected $int32;
/**
* $int64
* @var int
*/
protected $int64;
/**
* $number
* @var float
*/
protected $number;
/**
* $float
* @var float
*/
protected $float;
/**
* $double
* @var double
*/
protected $double;
/**
* $string
* @var string
*/
protected $string;
/**
* $byte
* @var string
*/
protected $byte;
/**
* $binary
* @var string
*/
protected $binary;
/**
* $date
* @var \DateTime
*/
protected $date;
/**
* $date_time
* @var string
*/
protected $date_time;
/**
* Constructor
* @param mixed[] $data Associated array of property value initalizing the model
*/
public function __construct(array $data = null)
{
if ($data != null) {
$this->integer = $data["integer"];
$this->int32 = $data["int32"];
$this->int64 = $data["int64"];
$this->number = $data["number"];
$this->float = $data["float"];
$this->double = $data["double"];
$this->string = $data["string"];
$this->byte = $data["byte"];
$this->binary = $data["binary"];
$this->date = $data["date"];
$this->date_time = $data["date_time"];
}
}
/**
* Gets integer
* @return int
*/
public function getInteger()
{
return $this->integer;
}
/**
* Sets integer
* @param int $integer
* @return $this
*/
public function setInteger($integer)
{
$this->integer = $integer;
return $this;
}
/**
* Gets int32
* @return int
*/
public function getInt32()
{
return $this->int32;
}
/**
* Sets int32
* @param int $int32
* @return $this
*/
public function setInt32($int32)
{
$this->int32 = $int32;
return $this;
}
/**
* Gets int64
* @return int
*/
public function getInt64()
{
return $this->int64;
}
/**
* Sets int64
* @param int $int64
* @return $this
*/
public function setInt64($int64)
{
$this->int64 = $int64;
return $this;
}
/**
* Gets number
* @return float
*/
public function getNumber()
{
return $this->number;
}
/**
* Sets number
* @param float $number
* @return $this
*/
public function setNumber($number)
{
$this->number = $number;
return $this;
}
/**
* Gets float
* @return float
*/
public function getFloat()
{
return $this->float;
}
/**
* Sets float
* @param float $float
* @return $this
*/
public function setFloat($float)
{
$this->float = $float;
return $this;
}
/**
* Gets double
* @return double
*/
public function getDouble()
{
return $this->double;
}
/**
* Sets double
* @param double $double
* @return $this
*/
public function setDouble($double)
{
$this->double = $double;
return $this;
}
/**
* Gets string
* @return string
*/
public function getString()
{
return $this->string;
}
/**
* Sets string
* @param string $string
* @return $this
*/
public function setString($string)
{
$this->string = $string;
return $this;
}
/**
* Gets byte
* @return string
*/
public function getByte()
{
return $this->byte;
}
/**
* Sets byte
* @param string $byte
* @return $this
*/
public function setByte($byte)
{
$this->byte = $byte;
return $this;
}
/**
* Gets binary
* @return string
*/
public function getBinary()
{
return $this->binary;
}
/**
* Sets binary
* @param string $binary
* @return $this
*/
public function setBinary($binary)
{
$this->binary = $binary;
return $this;
}
/**
* Gets date
* @return \DateTime
*/
public function getDate()
{
return $this->date;
}
/**
* Sets date
* @param \DateTime $date
* @return $this
*/
public function setDate($date)
{
$this->date = $date;
return $this;
}
/**
* Gets date_time
* @return string
*/
public function getDateTime()
{
return $this->date_time;
}
/**
* Sets date_time
* @param string $date_time
* @return $this
*/
public function setDateTime($date_time)
{
$this->date_time = $date_time;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->$offset);
}
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return $this->$offset;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
$this->$offset = $value;
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->$offset);
}
/**
* Gets the string presentation of the object
* @return string
*/
public function __toString()
{
if (defined('JSON_PRETTY_PRINT')) { // use JSON pretty print
return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
}
return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this));
}
}