Merge pull request #2854 from BeneficialName/php-cleanup

[PHP] Cleanup to make coding style more consistent
This commit is contained in:
wing328
2016-05-13 17:31:36 +08:00
64 changed files with 1860 additions and 372 deletions

View File

@@ -54,7 +54,7 @@ class Animal implements ArrayAccess
static $swaggerModelName = 'Animal';
/**
* Array of property to type mappings. Used for (de)serialization
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
static $swaggerTypes = array(
@@ -66,7 +66,7 @@ class Animal implements ArrayAccess
return self::$swaggerTypes;
}
/**
/**
* Array of attributes where the key is the local name, and the value is the original name
* @var string[]
*/
@@ -100,8 +100,9 @@ class Animal implements ArrayAccess
'class_name' => 'getClassName',
'color' => 'getColor'
);
static function getters() {
static function getters()
{
return self::$getters;
}
@@ -131,7 +132,7 @@ class Animal implements ArrayAccess
/**
* show all the invalid properties with reasons.
*
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
@@ -146,8 +147,8 @@ class Animal implements ArrayAccess
/**
* validate all the properties in the model
* return true if all passed
*
* @return bool True if all properteis are valid
*
* @return bool True if all properteis are valid
*/
public function valid()
{
@@ -201,7 +202,7 @@ class Animal implements ArrayAccess
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
@@ -211,17 +212,17 @@ class Animal implements ArrayAccess
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
@@ -233,17 +234,17 @@ class Animal implements ArrayAccess
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string

View File

@@ -54,7 +54,7 @@ class AnimalFarm implements ArrayAccess
static $swaggerModelName = 'AnimalFarm';
/**
* Array of property to type mappings. Used for (de)serialization
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
static $swaggerTypes = array(
@@ -65,7 +65,7 @@ class AnimalFarm implements ArrayAccess
return self::$swaggerTypes;
}
/**
/**
* Array of attributes where the key is the local name, and the value is the original name
* @var string[]
*/
@@ -96,8 +96,9 @@ class AnimalFarm implements ArrayAccess
static $getters = array(
);
static function getters() {
static function getters()
{
return self::$getters;
}
@@ -121,7 +122,7 @@ class AnimalFarm implements ArrayAccess
/**
* show all the invalid properties with reasons.
*
*
* @return array invalid properties with reasons
*/
public function list_invalid_properties()
@@ -133,8 +134,8 @@ class AnimalFarm implements ArrayAccess
/**
* validate all the properties in the model
* return true if all passed
*
* @return bool True if all properteis are valid
*
* @return bool True if all properteis are valid
*/
public function valid()
{
@@ -143,7 +144,7 @@ class AnimalFarm implements ArrayAccess
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
@@ -153,17 +154,17 @@ class AnimalFarm implements ArrayAccess
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
@@ -175,17 +176,17 @@ class AnimalFarm implements ArrayAccess
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string

View File

@@ -54,7 +54,7 @@ class ApiResponse implements ArrayAccess
static $swaggerModelName = 'ApiResponse';
/**
* Array of property to type mappings. Used for (de)serialization
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
static $swaggerTypes = array(
@@ -67,7 +67,7 @@ class ApiResponse implements ArrayAccess
return self::$swaggerTypes;
}
/**
/**
* Array of attributes where the key is the local name, and the value is the original name
* @var string[]
*/
@@ -104,8 +104,9 @@ class ApiResponse implements ArrayAccess
'type' => 'getType',
'message' => 'getMessage'
);
static function getters() {
static function getters()
{
return self::$getters;
}
@@ -132,7 +133,7 @@ class ApiResponse implements ArrayAccess
/**
* show all the invalid properties with reasons.
*
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
@@ -144,8 +145,8 @@ class ApiResponse implements ArrayAccess
/**
* validate all the properties in the model
* return true if all passed
*
* @return bool True if all properteis are valid
*
* @return bool True if all properteis are valid
*/
public function valid()
{
@@ -217,7 +218,7 @@ class ApiResponse implements ArrayAccess
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
@@ -227,17 +228,17 @@ class ApiResponse implements ArrayAccess
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
@@ -249,17 +250,17 @@ class ApiResponse implements ArrayAccess
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string

View File

@@ -54,7 +54,7 @@ class Cat extends Animal implements ArrayAccess
static $swaggerModelName = 'Cat';
/**
* Array of property to type mappings. Used for (de)serialization
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
static $swaggerTypes = array(
@@ -65,7 +65,7 @@ class Cat extends Animal implements ArrayAccess
return self::$swaggerTypes + parent::swaggerTypes();
}
/**
/**
* Array of attributes where the key is the local name, and the value is the original name
* @var string[]
*/
@@ -96,8 +96,9 @@ class Cat extends Animal implements ArrayAccess
static $getters = array(
'declawed' => 'getDeclawed'
);
static function getters() {
static function getters()
{
return parent::getters() + self::$getters;
}
@@ -124,7 +125,7 @@ class Cat extends Animal implements ArrayAccess
/**
* show all the invalid properties with reasons.
*
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
@@ -136,8 +137,8 @@ class Cat extends Animal implements ArrayAccess
/**
* validate all the properties in the model
* return true if all passed
*
* @return bool True if all properteis are valid
*
* @return bool True if all properteis are valid
*/
public function valid()
{
@@ -167,7 +168,7 @@ class Cat extends Animal implements ArrayAccess
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
@@ -177,17 +178,17 @@ class Cat extends Animal implements ArrayAccess
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
@@ -199,17 +200,17 @@ class Cat extends Animal implements ArrayAccess
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string

View File

@@ -54,7 +54,7 @@ class Category implements ArrayAccess
static $swaggerModelName = 'Category';
/**
* Array of property to type mappings. Used for (de)serialization
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
static $swaggerTypes = array(
@@ -66,7 +66,7 @@ class Category implements ArrayAccess
return self::$swaggerTypes;
}
/**
/**
* Array of attributes where the key is the local name, and the value is the original name
* @var string[]
*/
@@ -100,8 +100,9 @@ class Category implements ArrayAccess
'id' => 'getId',
'name' => 'getName'
);
static function getters() {
static function getters()
{
return self::$getters;
}
@@ -127,7 +128,7 @@ class Category implements ArrayAccess
/**
* show all the invalid properties with reasons.
*
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
@@ -139,8 +140,8 @@ class Category implements ArrayAccess
/**
* validate all the properties in the model
* return true if all passed
*
* @return bool True if all properteis are valid
*
* @return bool True if all properteis are valid
*/
public function valid()
{
@@ -191,7 +192,7 @@ class Category implements ArrayAccess
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
@@ -201,17 +202,17 @@ class Category implements ArrayAccess
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
@@ -223,17 +224,17 @@ class Category implements ArrayAccess
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string

View File

@@ -54,7 +54,7 @@ class Dog extends Animal implements ArrayAccess
static $swaggerModelName = 'Dog';
/**
* Array of property to type mappings. Used for (de)serialization
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
static $swaggerTypes = array(
@@ -65,7 +65,7 @@ class Dog extends Animal implements ArrayAccess
return self::$swaggerTypes + parent::swaggerTypes();
}
/**
/**
* Array of attributes where the key is the local name, and the value is the original name
* @var string[]
*/
@@ -96,8 +96,9 @@ class Dog extends Animal implements ArrayAccess
static $getters = array(
'breed' => 'getBreed'
);
static function getters() {
static function getters()
{
return parent::getters() + self::$getters;
}
@@ -124,7 +125,7 @@ class Dog extends Animal implements ArrayAccess
/**
* show all the invalid properties with reasons.
*
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
@@ -136,8 +137,8 @@ class Dog extends Animal implements ArrayAccess
/**
* validate all the properties in the model
* return true if all passed
*
* @return bool True if all properteis are valid
*
* @return bool True if all properteis are valid
*/
public function valid()
{
@@ -167,7 +168,7 @@ class Dog extends Animal implements ArrayAccess
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
@@ -177,17 +178,17 @@ class Dog extends Animal implements ArrayAccess
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
@@ -199,17 +200,17 @@ class Dog extends Animal implements ArrayAccess
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string

View File

@@ -54,7 +54,7 @@ class EnumClass implements ArrayAccess
static $swaggerModelName = 'EnumClass';
/**
* Array of property to type mappings. Used for (de)serialization
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
static $swaggerTypes = array(
@@ -65,7 +65,7 @@ class EnumClass implements ArrayAccess
return self::$swaggerTypes;
}
/**
/**
* Array of attributes where the key is the local name, and the value is the original name
* @var string[]
*/
@@ -96,8 +96,9 @@ class EnumClass implements ArrayAccess
static $getters = array(
);
static function getters() {
static function getters()
{
return self::$getters;
}
@@ -121,7 +122,7 @@ class EnumClass implements ArrayAccess
/**
* show all the invalid properties with reasons.
*
*
* @return array invalid properties with reasons
*/
public function list_invalid_properties()
@@ -133,8 +134,8 @@ class EnumClass implements ArrayAccess
/**
* validate all the properties in the model
* return true if all passed
*
* @return bool True if all properteis are valid
*
* @return bool True if all properteis are valid
*/
public function valid()
{
@@ -143,7 +144,7 @@ class EnumClass implements ArrayAccess
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
@@ -153,17 +154,17 @@ class EnumClass implements ArrayAccess
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
@@ -175,17 +176,17 @@ class EnumClass implements ArrayAccess
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string

View File

@@ -54,7 +54,7 @@ class EnumTest implements ArrayAccess
static $swaggerModelName = 'Enum_Test';
/**
* Array of property to type mappings. Used for (de)serialization
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
static $swaggerTypes = array(
@@ -67,7 +67,7 @@ class EnumTest implements ArrayAccess
return self::$swaggerTypes;
}
/**
/**
* Array of attributes where the key is the local name, and the value is the original name
* @var string[]
*/
@@ -104,17 +104,12 @@ class EnumTest implements ArrayAccess
'enum_integer' => 'getEnumInteger',
'enum_number' => 'getEnumNumber'
);
static function getters() {
static function getters()
{
return self::$getters;
}
const ENUM_STRING_UPPER = 'UPPER';
const ENUM_STRING_LOWER = 'lower';
const ENUM_INTEGER_1 = 1;
const ENUM_INTEGER_MINUS_1 = -1;
const ENUM_NUMBER_1_DOT_1 = 1.1;
const ENUM_NUMBER_MINUS_1_DOT_2 = -1.2;
@@ -122,10 +117,10 @@ class EnumTest implements ArrayAccess
* Gets allowable values of the enum
* @return string[]
*/
public function getEnumStringAllowableValues() {
public function getEnumStringAllowableValues()
{
return [
self::ENUM_STRING_UPPER,
self::ENUM_STRING_LOWER,
];
}
@@ -133,10 +128,10 @@ class EnumTest implements ArrayAccess
* Gets allowable values of the enum
* @return string[]
*/
public function getEnumIntegerAllowableValues() {
public function getEnumIntegerAllowableValues()
{
return [
self::ENUM_INTEGER_1,
self::ENUM_INTEGER_MINUS_1,
];
}
@@ -144,10 +139,10 @@ class EnumTest implements ArrayAccess
* Gets allowable values of the enum
* @return string[]
*/
public function getEnumNumberAllowableValues() {
public function getEnumNumberAllowableValues()
{
return [
self::ENUM_NUMBER_1_DOT_1,
self::ENUM_NUMBER_MINUS_1_DOT_2,
];
}
@@ -171,7 +166,7 @@ class EnumTest implements ArrayAccess
/**
* show all the invalid properties with reasons.
*
*
* @return array invalid properties with reasons
*/
public function list_invalid_properties()
@@ -195,8 +190,8 @@ class EnumTest implements ArrayAccess
/**
* validate all the properties in the model
* return true if all passed
*
* @return bool True if all properteis are valid
*
* @return bool True if all properteis are valid
*/
public function valid()
{
@@ -292,7 +287,7 @@ class EnumTest implements ArrayAccess
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
@@ -302,17 +297,17 @@ class EnumTest implements ArrayAccess
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
@@ -324,17 +319,17 @@ class EnumTest implements ArrayAccess
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string

View File

@@ -54,7 +54,7 @@ class FormatTest implements ArrayAccess
static $swaggerModelName = 'format_test';
/**
* Array of property to type mappings. Used for (de)serialization
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
static $swaggerTypes = array(
@@ -69,7 +69,7 @@ class FormatTest implements ArrayAccess
'binary' => 'string',
'date' => '\DateTime',
'date_time' => '\DateTime',
'uuid' => 'string',
'uuid' => 'UUID',
'password' => 'string'
);
@@ -77,7 +77,7 @@ class FormatTest implements ArrayAccess
return self::$swaggerTypes;
}
/**
/**
* Array of attributes where the key is the local name, and the value is the original name
* @var string[]
*/
@@ -144,8 +144,9 @@ class FormatTest implements ArrayAccess
'uuid' => 'getUuid',
'password' => 'getPassword'
);
static function getters() {
static function getters()
{
return self::$getters;
}
@@ -182,7 +183,7 @@ class FormatTest implements ArrayAccess
/**
* show all the invalid properties with reasons.
*
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
@@ -245,8 +246,8 @@ class FormatTest implements ArrayAccess
/**
* validate all the properties in the model
* return true if all passed
*
* @return bool True if all properteis are valid
*
* @return bool True if all properteis are valid
*/
public function valid()
{
@@ -577,7 +578,7 @@ class FormatTest implements ArrayAccess
/**
* Gets uuid
* @return string
* @return UUID
*/
public function getUuid()
{
@@ -586,7 +587,7 @@ class FormatTest implements ArrayAccess
/**
* Sets uuid
* @param string $uuid
* @param UUID $uuid
* @return $this
*/
public function setUuid($uuid)
@@ -624,7 +625,7 @@ class FormatTest implements ArrayAccess
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
@@ -634,17 +635,17 @@ class FormatTest implements ArrayAccess
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
@@ -656,17 +657,17 @@ class FormatTest implements ArrayAccess
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string

View File

@@ -54,7 +54,7 @@ class Model200Response implements ArrayAccess
static $swaggerModelName = '200_response';
/**
* Array of property to type mappings. Used for (de)serialization
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
static $swaggerTypes = array(
@@ -65,7 +65,7 @@ class Model200Response implements ArrayAccess
return self::$swaggerTypes;
}
/**
/**
* Array of attributes where the key is the local name, and the value is the original name
* @var string[]
*/
@@ -96,8 +96,9 @@ class Model200Response implements ArrayAccess
static $getters = array(
'name' => 'getName'
);
static function getters() {
static function getters()
{
return self::$getters;
}
@@ -122,7 +123,7 @@ class Model200Response implements ArrayAccess
/**
* show all the invalid properties with reasons.
*
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
@@ -134,8 +135,8 @@ class Model200Response implements ArrayAccess
/**
* validate all the properties in the model
* return true if all passed
*
* @return bool True if all properteis are valid
*
* @return bool True if all properteis are valid
*/
public function valid()
{
@@ -165,7 +166,7 @@ class Model200Response implements ArrayAccess
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
@@ -175,17 +176,17 @@ class Model200Response implements ArrayAccess
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
@@ -197,17 +198,17 @@ class Model200Response implements ArrayAccess
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string

View File

@@ -54,7 +54,7 @@ class ModelReturn implements ArrayAccess
static $swaggerModelName = 'Return';
/**
* Array of property to type mappings. Used for (de)serialization
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
static $swaggerTypes = array(
@@ -65,7 +65,7 @@ class ModelReturn implements ArrayAccess
return self::$swaggerTypes;
}
/**
/**
* Array of attributes where the key is the local name, and the value is the original name
* @var string[]
*/
@@ -96,8 +96,9 @@ class ModelReturn implements ArrayAccess
static $getters = array(
'return' => 'getReturn'
);
static function getters() {
static function getters()
{
return self::$getters;
}
@@ -122,7 +123,7 @@ class ModelReturn implements ArrayAccess
/**
* show all the invalid properties with reasons.
*
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
@@ -134,8 +135,8 @@ class ModelReturn implements ArrayAccess
/**
* validate all the properties in the model
* return true if all passed
*
* @return bool True if all properteis are valid
*
* @return bool True if all properteis are valid
*/
public function valid()
{
@@ -165,7 +166,7 @@ class ModelReturn implements ArrayAccess
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
@@ -175,17 +176,17 @@ class ModelReturn implements ArrayAccess
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
@@ -197,17 +198,17 @@ class ModelReturn implements ArrayAccess
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string

View File

@@ -54,7 +54,7 @@ class Name implements ArrayAccess
static $swaggerModelName = 'Name';
/**
* Array of property to type mappings. Used for (de)serialization
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
static $swaggerTypes = array(
@@ -68,7 +68,7 @@ class Name implements ArrayAccess
return self::$swaggerTypes;
}
/**
/**
* Array of attributes where the key is the local name, and the value is the original name
* @var string[]
*/
@@ -108,8 +108,9 @@ class Name implements ArrayAccess
'property' => 'getProperty',
'_123_number' => 'get123Number'
);
static function getters() {
static function getters()
{
return self::$getters;
}
@@ -137,7 +138,7 @@ class Name implements ArrayAccess
/**
* show all the invalid properties with reasons.
*
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
@@ -152,8 +153,8 @@ class Name implements ArrayAccess
/**
* validate all the properties in the model
* return true if all passed
*
* @return bool True if all properteis are valid
*
* @return bool True if all properteis are valid
*/
public function valid()
{
@@ -249,7 +250,7 @@ class Name implements ArrayAccess
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
@@ -259,17 +260,17 @@ class Name implements ArrayAccess
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
@@ -281,17 +282,17 @@ class Name implements ArrayAccess
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string

View File

@@ -54,7 +54,7 @@ class Order implements ArrayAccess
static $swaggerModelName = 'Order';
/**
* Array of property to type mappings. Used for (de)serialization
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
static $swaggerTypes = array(
@@ -70,7 +70,7 @@ class Order implements ArrayAccess
return self::$swaggerTypes;
}
/**
/**
* Array of attributes where the key is the local name, and the value is the original name
* @var string[]
*/
@@ -116,14 +116,12 @@ class Order implements ArrayAccess
'status' => 'getStatus',
'complete' => 'getComplete'
);
static function getters() {
static function getters()
{
return self::$getters;
}
const STATUS_PLACED = 'placed';
const STATUS_APPROVED = 'approved';
const STATUS_DELIVERED = 'delivered';
@@ -131,11 +129,10 @@ class Order implements ArrayAccess
* Gets allowable values of the enum
* @return string[]
*/
public function getStatusAllowableValues() {
public function getStatusAllowableValues()
{
return [
self::STATUS_PLACED,
self::STATUS_APPROVED,
self::STATUS_DELIVERED,
];
}
@@ -162,7 +159,7 @@ class Order implements ArrayAccess
/**
* show all the invalid properties with reasons.
*
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
@@ -178,8 +175,8 @@ class Order implements ArrayAccess
/**
* validate all the properties in the model
* return true if all passed
*
* @return bool True if all properteis are valid
*
* @return bool True if all properteis are valid
*/
public function valid()
{
@@ -322,7 +319,7 @@ class Order implements ArrayAccess
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
@@ -332,17 +329,17 @@ class Order implements ArrayAccess
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
@@ -354,17 +351,17 @@ class Order implements ArrayAccess
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string

View File

@@ -54,7 +54,7 @@ class Pet implements ArrayAccess
static $swaggerModelName = 'Pet';
/**
* Array of property to type mappings. Used for (de)serialization
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
static $swaggerTypes = array(
@@ -70,7 +70,7 @@ class Pet implements ArrayAccess
return self::$swaggerTypes;
}
/**
/**
* Array of attributes where the key is the local name, and the value is the original name
* @var string[]
*/
@@ -116,14 +116,12 @@ class Pet implements ArrayAccess
'tags' => 'getTags',
'status' => 'getStatus'
);
static function getters() {
static function getters()
{
return self::$getters;
}
const STATUS_AVAILABLE = 'available';
const STATUS_PENDING = 'pending';
const STATUS_SOLD = 'sold';
@@ -131,11 +129,10 @@ class Pet implements ArrayAccess
* Gets allowable values of the enum
* @return string[]
*/
public function getStatusAllowableValues() {
public function getStatusAllowableValues()
{
return [
self::STATUS_AVAILABLE,
self::STATUS_PENDING,
self::STATUS_SOLD,
];
}
@@ -162,7 +159,7 @@ class Pet implements ArrayAccess
/**
* show all the invalid properties with reasons.
*
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
@@ -184,8 +181,8 @@ class Pet implements ArrayAccess
/**
* validate all the properties in the model
* return true if all passed
*
* @return bool True if all properteis are valid
*
* @return bool True if all properteis are valid
*/
public function valid()
{
@@ -334,7 +331,7 @@ class Pet implements ArrayAccess
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
@@ -344,17 +341,17 @@ class Pet implements ArrayAccess
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
@@ -366,17 +363,17 @@ class Pet implements ArrayAccess
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string

View File

@@ -54,7 +54,7 @@ class SpecialModelName implements ArrayAccess
static $swaggerModelName = '$special[model.name]';
/**
* Array of property to type mappings. Used for (de)serialization
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
static $swaggerTypes = array(
@@ -65,7 +65,7 @@ class SpecialModelName implements ArrayAccess
return self::$swaggerTypes;
}
/**
/**
* Array of attributes where the key is the local name, and the value is the original name
* @var string[]
*/
@@ -96,8 +96,9 @@ class SpecialModelName implements ArrayAccess
static $getters = array(
'special_property_name' => 'getSpecialPropertyName'
);
static function getters() {
static function getters()
{
return self::$getters;
}
@@ -122,7 +123,7 @@ class SpecialModelName implements ArrayAccess
/**
* show all the invalid properties with reasons.
*
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
@@ -134,8 +135,8 @@ class SpecialModelName implements ArrayAccess
/**
* validate all the properties in the model
* return true if all passed
*
* @return bool True if all properteis are valid
*
* @return bool True if all properteis are valid
*/
public function valid()
{
@@ -165,7 +166,7 @@ class SpecialModelName implements ArrayAccess
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
@@ -175,17 +176,17 @@ class SpecialModelName implements ArrayAccess
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
@@ -197,17 +198,17 @@ class SpecialModelName implements ArrayAccess
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string

View File

@@ -54,7 +54,7 @@ class Tag implements ArrayAccess
static $swaggerModelName = 'Tag';
/**
* Array of property to type mappings. Used for (de)serialization
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
static $swaggerTypes = array(
@@ -66,7 +66,7 @@ class Tag implements ArrayAccess
return self::$swaggerTypes;
}
/**
/**
* Array of attributes where the key is the local name, and the value is the original name
* @var string[]
*/
@@ -100,8 +100,9 @@ class Tag implements ArrayAccess
'id' => 'getId',
'name' => 'getName'
);
static function getters() {
static function getters()
{
return self::$getters;
}
@@ -127,7 +128,7 @@ class Tag implements ArrayAccess
/**
* show all the invalid properties with reasons.
*
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
@@ -139,8 +140,8 @@ class Tag implements ArrayAccess
/**
* validate all the properties in the model
* return true if all passed
*
* @return bool True if all properteis are valid
*
* @return bool True if all properteis are valid
*/
public function valid()
{
@@ -191,7 +192,7 @@ class Tag implements ArrayAccess
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
@@ -201,17 +202,17 @@ class Tag implements ArrayAccess
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
@@ -223,17 +224,17 @@ class Tag implements ArrayAccess
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string

View File

@@ -54,7 +54,7 @@ class User implements ArrayAccess
static $swaggerModelName = 'User';
/**
* Array of property to type mappings. Used for (de)serialization
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
static $swaggerTypes = array(
@@ -72,7 +72,7 @@ class User implements ArrayAccess
return self::$swaggerTypes;
}
/**
/**
* Array of attributes where the key is the local name, and the value is the original name
* @var string[]
*/
@@ -124,8 +124,9 @@ class User implements ArrayAccess
'phone' => 'getPhone',
'user_status' => 'getUserStatus'
);
static function getters() {
static function getters()
{
return self::$getters;
}
@@ -157,7 +158,7 @@ class User implements ArrayAccess
/**
* show all the invalid properties with reasons.
*
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
@@ -169,8 +170,8 @@ class User implements ArrayAccess
/**
* validate all the properties in the model
* return true if all passed
*
* @return bool True if all properteis are valid
*
* @return bool True if all properteis are valid
*/
public function valid()
{
@@ -347,7 +348,7 @@ class User implements ArrayAccess
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
@@ -357,17 +358,17 @@ class User implements ArrayAccess
/**
* Gets offset.
* @param integer $offset Offset
* @return mixed
* @param integer $offset Offset
* @return mixed
*/
public function offsetGet($offset)
{
return isset($this->container[$offset]) ? $this->container[$offset] : null;
}
/**
* Sets value based on offset.
* @param integer $offset Offset
* @param integer $offset Offset
* @param mixed $value Value to be set
* @return void
*/
@@ -379,17 +380,17 @@ class User implements ArrayAccess
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$offset]);
}
/**
* Gets the string presentation of the object
* @return string