[PHP] Regenerate petstore sample

This commit is contained in:
Arne Jørgensen
2016-05-06 23:46:02 +02:00
parent f5a802d9af
commit bf8b7b760c
26 changed files with 780 additions and 870 deletions

View File

@@ -34,6 +34,7 @@
namespace Swagger\Client\Model;
use \ArrayAccess;
/**
* Animal Class Doc Comment
*
@@ -57,9 +58,10 @@ class Animal implements ArrayAccess
* @var string[]
*/
static $swaggerTypes = array(
'class_name' => 'string'
'class_name' => 'string',
'color' => 'string'
);
static function swaggerTypes() {
return self::$swaggerTypes;
}
@@ -69,9 +71,10 @@ class Animal implements ArrayAccess
* @var string[]
*/
static $attributeMap = array(
'class_name' => 'className'
'class_name' => 'className',
'color' => 'color'
);
static function attributeMap() {
return self::$attributeMap;
}
@@ -81,9 +84,10 @@ class Animal implements ArrayAccess
* @var string[]
*/
static $setters = array(
'class_name' => 'setClassName'
'class_name' => 'setClassName',
'color' => 'setColor'
);
static function setters() {
return self::$setters;
}
@@ -93,7 +97,8 @@ class Animal implements ArrayAccess
* @var string[]
*/
static $getters = array(
'class_name' => 'getClassName'
'class_name' => 'getClassName',
'color' => 'getColor'
);
static function getters() {
@@ -108,13 +113,7 @@ class Animal implements ArrayAccess
* Associative array for storing property values
* @var mixed[]
*/
protected $container = array(
/**
* $container['class_name']
* @var string
*/
'class_name' => null,
);
protected $container = array();
/**
* Constructor
@@ -122,15 +121,14 @@ class Animal implements ArrayAccess
*/
public function __construct(array $data = null)
{
$this->container['class_name'] = isset($data['class_name']) ? $data['class_name'] : null;
$this->container['color'] = isset($data['color']) ? $data['color'] : 'red';
// Initialize discriminator property with the model name.
$discrimintor = array_search('className', self::$attributeMap);
$this->container[$discrimintor] = static::$swaggerModelName;
if ($data != null) {
$this->container['class_name'] = $data['class_name'];
}
}
/**
* Gets class_name
* @return string
@@ -151,6 +149,27 @@ class Animal implements ArrayAccess
$this->container['class_name'] = $class_name;
return $this;
}
/**
* Gets color
* @return string
*/
public function getColor()
{
return $this->container['color'];
}
/**
* Sets color
* @param string $color
* @return $this
*/
public function setColor($color)
{
$this->container['color'] = $color;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset

View File

@@ -34,6 +34,7 @@
namespace Swagger\Client\Model;
use \ArrayAccess;
/**
* AnimalFarm Class Doc Comment
*
@@ -59,7 +60,7 @@ class AnimalFarm implements ArrayAccess
static $swaggerTypes = array(
);
static function swaggerTypes() {
return self::$swaggerTypes;
}
@@ -71,7 +72,7 @@ class AnimalFarm implements ArrayAccess
static $attributeMap = array(
);
static function attributeMap() {
return self::$attributeMap;
}
@@ -83,7 +84,7 @@ class AnimalFarm implements ArrayAccess
static $setters = array(
);
static function setters() {
return self::$setters;
}
@@ -116,11 +117,6 @@ class AnimalFarm implements ArrayAccess
*/
public function __construct(array $data = null)
{
if ($data != null) {
}
}
/**
* Returns true if offset exists. False otherwise.

View File

@@ -34,6 +34,7 @@
namespace Swagger\Client\Model;
use \ArrayAccess;
/**
* ApiResponse Class Doc Comment
*
@@ -61,7 +62,7 @@ class ApiResponse implements ArrayAccess
'type' => 'string',
'message' => 'string'
);
static function swaggerTypes() {
return self::$swaggerTypes;
}
@@ -75,7 +76,7 @@ class ApiResponse implements ArrayAccess
'type' => 'type',
'message' => 'message'
);
static function attributeMap() {
return self::$attributeMap;
}
@@ -89,7 +90,7 @@ class ApiResponse implements ArrayAccess
'type' => 'setType',
'message' => 'setMessage'
);
static function setters() {
return self::$setters;
}
@@ -116,25 +117,7 @@ class ApiResponse implements ArrayAccess
* Associative array for storing property values
* @var mixed[]
*/
protected $container = array(
/**
* $container['code']
* @var int
*/
'code' => null,
/**
* $container['type']
* @var string
*/
'type' => null,
/**
* $container['message']
* @var string
*/
'message' => null,
);
protected $container = array();
/**
* Constructor
@@ -142,14 +125,11 @@ class ApiResponse implements ArrayAccess
*/
public function __construct(array $data = null)
{
if ($data != null) {
$this->container['code'] = $data['code'];
$this->container['type'] = $data['type'];
$this->container['message'] = $data['message'];
}
$this->container['code'] = isset($data['code']) ? $data['code'] : null;
$this->container['type'] = isset($data['type']) ? $data['type'] : null;
$this->container['message'] = isset($data['message']) ? $data['message'] : null;
}
/**
* Gets code
* @return int
@@ -170,6 +150,7 @@ class ApiResponse implements ArrayAccess
$this->container['code'] = $code;
return $this;
}
/**
* Gets type
* @return string
@@ -190,6 +171,7 @@ class ApiResponse implements ArrayAccess
$this->container['type'] = $type;
return $this;
}
/**
* Gets message
* @return string

View File

@@ -34,6 +34,7 @@
namespace Swagger\Client\Model;
use \ArrayAccess;
/**
* Cat Class Doc Comment
*
@@ -59,7 +60,7 @@ class Cat extends Animal implements ArrayAccess
static $swaggerTypes = array(
'declawed' => 'bool'
);
static function swaggerTypes() {
return self::$swaggerTypes + parent::swaggerTypes();
}
@@ -71,7 +72,7 @@ class Cat extends Animal implements ArrayAccess
static $attributeMap = array(
'declawed' => 'declawed'
);
static function attributeMap() {
return parent::attributeMap() + self::$attributeMap;
}
@@ -83,7 +84,7 @@ class Cat extends Animal implements ArrayAccess
static $setters = array(
'declawed' => 'setDeclawed'
);
static function setters() {
return parent::setters() + self::$setters;
}
@@ -108,13 +109,7 @@ class Cat extends Animal implements ArrayAccess
* Associative array for storing property values
* @var mixed[]
*/
protected $container = array(
/**
* $container['declawed']
* @var bool
*/
'declawed' => null,
);
protected $container = array();
/**
* Constructor
@@ -123,11 +118,10 @@ class Cat extends Animal implements ArrayAccess
public function __construct(array $data = null)
{
parent::__construct($data);
if ($data != null) {
$this->container['declawed'] = $data['declawed'];
}
$this->container['declawed'] = isset($data['declawed']) ? $data['declawed'] : null;
}
/**
* Gets declawed
* @return bool

View File

@@ -34,6 +34,7 @@
namespace Swagger\Client\Model;
use \ArrayAccess;
/**
* Category Class Doc Comment
*
@@ -60,7 +61,7 @@ class Category implements ArrayAccess
'id' => 'int',
'name' => 'string'
);
static function swaggerTypes() {
return self::$swaggerTypes;
}
@@ -73,7 +74,7 @@ class Category implements ArrayAccess
'id' => 'id',
'name' => 'name'
);
static function attributeMap() {
return self::$attributeMap;
}
@@ -86,7 +87,7 @@ class Category implements ArrayAccess
'id' => 'setId',
'name' => 'setName'
);
static function setters() {
return self::$setters;
}
@@ -112,19 +113,7 @@ class Category implements ArrayAccess
* Associative array for storing property values
* @var mixed[]
*/
protected $container = array(
/**
* $container['id']
* @var int
*/
'id' => null,
/**
* $container['name']
* @var string
*/
'name' => null,
);
protected $container = array();
/**
* Constructor
@@ -132,13 +121,10 @@ class Category implements ArrayAccess
*/
public function __construct(array $data = null)
{
if ($data != null) {
$this->container['id'] = $data['id'];
$this->container['name'] = $data['name'];
}
$this->container['id'] = isset($data['id']) ? $data['id'] : null;
$this->container['name'] = isset($data['name']) ? $data['name'] : null;
}
/**
* Gets id
* @return int
@@ -159,6 +145,7 @@ class Category implements ArrayAccess
$this->container['id'] = $id;
return $this;
}
/**
* Gets name
* @return string

View File

@@ -34,6 +34,7 @@
namespace Swagger\Client\Model;
use \ArrayAccess;
/**
* Dog Class Doc Comment
*
@@ -59,7 +60,7 @@ class Dog extends Animal implements ArrayAccess
static $swaggerTypes = array(
'breed' => 'string'
);
static function swaggerTypes() {
return self::$swaggerTypes + parent::swaggerTypes();
}
@@ -71,7 +72,7 @@ class Dog extends Animal implements ArrayAccess
static $attributeMap = array(
'breed' => 'breed'
);
static function attributeMap() {
return parent::attributeMap() + self::$attributeMap;
}
@@ -83,7 +84,7 @@ class Dog extends Animal implements ArrayAccess
static $setters = array(
'breed' => 'setBreed'
);
static function setters() {
return parent::setters() + self::$setters;
}
@@ -108,13 +109,7 @@ class Dog extends Animal implements ArrayAccess
* Associative array for storing property values
* @var mixed[]
*/
protected $container = array(
/**
* $container['breed']
* @var string
*/
'breed' => null,
);
protected $container = array();
/**
* Constructor
@@ -123,11 +118,10 @@ class Dog extends Animal implements ArrayAccess
public function __construct(array $data = null)
{
parent::__construct($data);
if ($data != null) {
$this->container['breed'] = $data['breed'];
}
$this->container['breed'] = isset($data['breed']) ? $data['breed'] : null;
}
/**
* Gets breed
* @return string

View File

@@ -0,0 +1,178 @@
<?php
/**
* EnumClass
*
* 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;
/**
* EnumClass 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 EnumClass implements ArrayAccess
{
/**
* The original name of the model.
* @var string
*/
static $swaggerModelName = 'EnumClass';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
static $swaggerTypes = array(
);
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(
);
static function attributeMap() {
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
static $setters = array(
);
static function setters() {
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
static $getters = array(
);
static function getters() {
return self::$getters;
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = array();
/**
* Constructor
* @param mixed[] $data Associated array of property value initalizing the model
*/
public function __construct(array $data = null)
{
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @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 mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$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));
}
}

View File

@@ -0,0 +1,300 @@
<?php
/**
* EnumTest
*
* 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;
/**
* EnumTest 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 EnumTest implements ArrayAccess
{
/**
* The original name of the model.
* @var string
*/
static $swaggerModelName = 'Enum_Test';
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
static $swaggerTypes = array(
'enum_string' => 'string',
'enum_integer' => 'int',
'enum_number' => 'double'
);
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(
'enum_string' => 'enum_string',
'enum_integer' => 'enum_integer',
'enum_number' => 'enum_number'
);
static function attributeMap() {
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
static $setters = array(
'enum_string' => 'setEnumString',
'enum_integer' => 'setEnumInteger',
'enum_number' => 'setEnumNumber'
);
static function setters() {
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
static $getters = array(
'enum_string' => 'getEnumString',
'enum_integer' => 'getEnumInteger',
'enum_number' => 'getEnumNumber'
);
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;
/**
* Gets allowable values of the enum
* @return string[]
*/
public function getEnumStringAllowableValues() {
return [
self::ENUM_STRING_UPPER,
self::ENUM_STRING_LOWER,
];
}
/**
* Gets allowable values of the enum
* @return string[]
*/
public function getEnumIntegerAllowableValues() {
return [
self::ENUM_INTEGER_1,
self::ENUM_INTEGER_MINUS_1,
];
}
/**
* Gets allowable values of the enum
* @return string[]
*/
public function getEnumNumberAllowableValues() {
return [
self::ENUM_NUMBER_1_DOT_1,
self::ENUM_NUMBER_MINUS_1_DOT_2,
];
}
/**
* Associative array for storing property values
* @var mixed[]
*/
protected $container = array();
/**
* Constructor
* @param mixed[] $data Associated array of property value initalizing the model
*/
public function __construct(array $data = null)
{
$this->container['enum_string'] = isset($data['enum_string']) ? $data['enum_string'] : null;
$this->container['enum_integer'] = isset($data['enum_integer']) ? $data['enum_integer'] : null;
$this->container['enum_number'] = isset($data['enum_number']) ? $data['enum_number'] : null;
}
/**
* Gets enum_string
* @return string
*/
public function getEnumString()
{
return $this->container['enum_string'];
}
/**
* Sets enum_string
* @param string $enum_string
* @return $this
*/
public function setEnumString($enum_string)
{
$allowed_values = array('UPPER', 'lower');
if (!in_array($enum_string, $allowed_values)) {
throw new \InvalidArgumentException("Invalid value for 'enum_string', must be one of 'UPPER', 'lower'");
}
$this->container['enum_string'] = $enum_string;
return $this;
}
/**
* Gets enum_integer
* @return int
*/
public function getEnumInteger()
{
return $this->container['enum_integer'];
}
/**
* Sets enum_integer
* @param int $enum_integer
* @return $this
*/
public function setEnumInteger($enum_integer)
{
$allowed_values = array('1', '-1');
if (!in_array($enum_integer, $allowed_values)) {
throw new \InvalidArgumentException("Invalid value for 'enum_integer', must be one of '1', '-1'");
}
$this->container['enum_integer'] = $enum_integer;
return $this;
}
/**
* Gets enum_number
* @return double
*/
public function getEnumNumber()
{
return $this->container['enum_number'];
}
/**
* Sets enum_number
* @param double $enum_number
* @return $this
*/
public function setEnumNumber($enum_number)
{
$allowed_values = array('1.1', '-1.2');
if (!in_array($enum_number, $allowed_values)) {
throw new \InvalidArgumentException("Invalid value for 'enum_number', must be one of '1.1', '-1.2'");
}
$this->container['enum_number'] = $enum_number;
return $this;
}
/**
* Returns true if offset exists. False otherwise.
* @param integer $offset Offset
* @return boolean
*/
public function offsetExists($offset)
{
return isset($this->container[$offset]);
}
/**
* Gets offset.
* @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 mixed $value Value to be set
* @return void
*/
public function offsetSet($offset, $value)
{
if (is_null($offset)) {
$this->container[] = $value;
} else {
$this->container[$offset] = $value;
}
}
/**
* Unsets offset.
* @param integer $offset Offset
* @return void
*/
public function offsetUnset($offset)
{
unset($this->container[$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));
}
}

View File

@@ -34,6 +34,7 @@
namespace Swagger\Client\Model;
use \ArrayAccess;
/**
* FormatTest Class Doc Comment
*
@@ -71,7 +72,7 @@ class FormatTest implements ArrayAccess
'uuid' => 'string',
'password' => 'string'
);
static function swaggerTypes() {
return self::$swaggerTypes;
}
@@ -95,7 +96,7 @@ class FormatTest implements ArrayAccess
'uuid' => 'uuid',
'password' => 'password'
);
static function attributeMap() {
return self::$attributeMap;
}
@@ -119,7 +120,7 @@ class FormatTest implements ArrayAccess
'uuid' => 'setUuid',
'password' => 'setPassword'
);
static function setters() {
return self::$setters;
}
@@ -156,85 +157,7 @@ class FormatTest implements ArrayAccess
* Associative array for storing property values
* @var mixed[]
*/
protected $container = array(
/**
* $container['integer']
* @var int
*/
'integer' => null,
/**
* $container['int32']
* @var int
*/
'int32' => null,
/**
* $container['int64']
* @var int
*/
'int64' => null,
/**
* $container['number']
* @var float
*/
'number' => null,
/**
* $container['float']
* @var float
*/
'float' => null,
/**
* $container['double']
* @var double
*/
'double' => null,
/**
* $container['string']
* @var string
*/
'string' => null,
/**
* $container['byte']
* @var string
*/
'byte' => null,
/**
* $container['binary']
* @var string
*/
'binary' => null,
/**
* $container['date']
* @var \DateTime
*/
'date' => null,
/**
* $container['date_time']
* @var \DateTime
*/
'date_time' => null,
/**
* $container['uuid']
* @var string
*/
'uuid' => null,
/**
* $container['password']
* @var string
*/
'password' => null,
);
protected $container = array();
/**
* Constructor
@@ -242,24 +165,21 @@ class FormatTest implements ArrayAccess
*/
public function __construct(array $data = null)
{
if ($data != null) {
$this->container['integer'] = $data['integer'];
$this->container['int32'] = $data['int32'];
$this->container['int64'] = $data['int64'];
$this->container['number'] = $data['number'];
$this->container['float'] = $data['float'];
$this->container['double'] = $data['double'];
$this->container['string'] = $data['string'];
$this->container['byte'] = $data['byte'];
$this->container['binary'] = $data['binary'];
$this->container['date'] = $data['date'];
$this->container['date_time'] = $data['date_time'];
$this->container['uuid'] = $data['uuid'];
$this->container['password'] = $data['password'];
}
$this->container['integer'] = isset($data['integer']) ? $data['integer'] : null;
$this->container['int32'] = isset($data['int32']) ? $data['int32'] : null;
$this->container['int64'] = isset($data['int64']) ? $data['int64'] : null;
$this->container['number'] = isset($data['number']) ? $data['number'] : null;
$this->container['float'] = isset($data['float']) ? $data['float'] : null;
$this->container['double'] = isset($data['double']) ? $data['double'] : null;
$this->container['string'] = isset($data['string']) ? $data['string'] : null;
$this->container['byte'] = isset($data['byte']) ? $data['byte'] : null;
$this->container['binary'] = isset($data['binary']) ? $data['binary'] : null;
$this->container['date'] = isset($data['date']) ? $data['date'] : null;
$this->container['date_time'] = isset($data['date_time']) ? $data['date_time'] : null;
$this->container['uuid'] = isset($data['uuid']) ? $data['uuid'] : null;
$this->container['password'] = isset($data['password']) ? $data['password'] : null;
}
/**
* Gets integer
* @return int
@@ -280,6 +200,7 @@ class FormatTest implements ArrayAccess
$this->container['integer'] = $integer;
return $this;
}
/**
* Gets int32
* @return int
@@ -300,6 +221,7 @@ class FormatTest implements ArrayAccess
$this->container['int32'] = $int32;
return $this;
}
/**
* Gets int64
* @return int
@@ -320,6 +242,7 @@ class FormatTest implements ArrayAccess
$this->container['int64'] = $int64;
return $this;
}
/**
* Gets number
* @return float
@@ -340,6 +263,7 @@ class FormatTest implements ArrayAccess
$this->container['number'] = $number;
return $this;
}
/**
* Gets float
* @return float
@@ -360,6 +284,7 @@ class FormatTest implements ArrayAccess
$this->container['float'] = $float;
return $this;
}
/**
* Gets double
* @return double
@@ -380,6 +305,7 @@ class FormatTest implements ArrayAccess
$this->container['double'] = $double;
return $this;
}
/**
* Gets string
* @return string
@@ -400,6 +326,7 @@ class FormatTest implements ArrayAccess
$this->container['string'] = $string;
return $this;
}
/**
* Gets byte
* @return string
@@ -420,6 +347,7 @@ class FormatTest implements ArrayAccess
$this->container['byte'] = $byte;
return $this;
}
/**
* Gets binary
* @return string
@@ -440,6 +368,7 @@ class FormatTest implements ArrayAccess
$this->container['binary'] = $binary;
return $this;
}
/**
* Gets date
* @return \DateTime
@@ -460,6 +389,7 @@ class FormatTest implements ArrayAccess
$this->container['date'] = $date;
return $this;
}
/**
* Gets date_time
* @return \DateTime
@@ -480,6 +410,7 @@ class FormatTest implements ArrayAccess
$this->container['date_time'] = $date_time;
return $this;
}
/**
* Gets uuid
* @return string
@@ -500,6 +431,7 @@ class FormatTest implements ArrayAccess
$this->container['uuid'] = $uuid;
return $this;
}
/**
* Gets password
* @return string

View File

@@ -1,375 +0,0 @@
<?php
/**
* InlineResponse200
*
* 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;
/**
* InlineResponse200 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 InlineResponse200 implements ArrayAccess
{
/**
* Array of property to type mappings. Used for (de)serialization
* @var string[]
*/
static $swaggerTypes = array(
'tags' => '\Swagger\Client\Model\Tag[]',
'id' => 'int',
'category' => 'object',
'status' => 'string',
'name' => 'string',
'photo_urls' => '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(
'tags' => 'tags',
'id' => 'id',
'category' => 'category',
'status' => 'status',
'name' => 'name',
'photo_urls' => 'photoUrls'
);
static function attributeMap() {
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
* @var string[]
*/
static $setters = array(
'tags' => 'setTags',
'id' => 'setId',
'category' => 'setCategory',
'status' => 'setStatus',
'name' => 'setName',
'photo_urls' => 'setPhotoUrls'
);
static function setters() {
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
* @var string[]
*/
static $getters = array(
'tags' => 'getTags',
'id' => 'getId',
'category' => 'getCategory',
'status' => 'getStatus',
'name' => 'getName',
'photo_urls' => 'getPhotoUrls'
);
static function getters() {
return self::$getters;
}
const STATUS_AVAILABLE = 'available';
const STATUS_PENDING = 'pending';
const STATUS_SOLD = 'sold';
/**
* Gets allowable values of the enum
* @return string[]
*/
public function getStatusAllowableValues() {
return [
self::STATUS_AVAILABLE,
self::STATUS_PENDING,
self::STATUS_SOLD,
];
}
/**
* $tags
* @var \Swagger\Client\Model\Tag[]
*/
protected $tags;
/**
* $id
* @var int
*/
protected $id;
/**
* $category
* @var object
*/
protected $category;
/**
* $status pet status in the store
* @var string
*/
protected $status;
/**
* $name
* @var string
*/
protected $name;
/**
* $photo_urls
* @var string[]
*/
protected $photo_urls;
/**
* Constructor
* @param mixed[] $data Associated array of property value initalizing the model
*/
public function __construct(array $data = null)
{
if ($data != null) {
$this->tags = $data["tags"];
$this->id = $data["id"];
$this->category = $data["category"];
$this->status = $data["status"];
$this->name = $data["name"];
$this->photo_urls = $data["photo_urls"];
}
}
/**
* Gets tags.
* @return \Swagger\Client\Model\Tag[]
*/
public function getTags()
{
return $this->tags;
}
/**
* Sets tags.
* @param \Swagger\Client\Model\Tag[] $tags
* @return $this
*/
public function setTags($tags)
{
$this->tags = $tags;
return $this;
}
/**
* Gets id.
* @return int
*/
public function getId()
{
return $this->id;
}
/**
* Sets id.
* @param int $id
* @return $this
*/
public function setId($id)
{
$this->id = $id;
return $this;
}
/**
* Gets category.
* @return object
*/
public function getCategory()
{
return $this->category;
}
/**
* Sets category.
* @param object $category
* @return $this
*/
public function setCategory($category)
{
$this->category = $category;
return $this;
}
/**
* Gets status.
* @return string
*/
public function getStatus()
{
return $this->status;
}
/**
* Sets status.
* @param string $status pet status in the store
* @return $this
*/
public function setStatus($status)
{
$allowed_values = array("available", "pending", "sold");
if (!in_array($status, $allowed_values)) {
throw new \InvalidArgumentException("Invalid value for 'status', must be one of 'available', 'pending', 'sold'");
}
$this->status = $status;
return $this;
}
/**
* Gets name.
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Sets name.
* @param string $name
* @return $this
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Gets photo_urls.
* @return string[]
*/
public function getPhotoUrls()
{
return $this->photo_urls;
}
/**
* Sets photo_urls.
* @param string[] $photo_urls
* @return $this
*/
public function setPhotoUrls($photo_urls)
{
$this->photo_urls = $photo_urls;
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')) {
return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT);
} else {
return json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($this));
}
}
}
?>

View File

@@ -34,6 +34,7 @@
namespace Swagger\Client\Model;
use \ArrayAccess;
/**
* Model200Response Class Doc Comment
*
@@ -59,7 +60,7 @@ class Model200Response implements ArrayAccess
static $swaggerTypes = array(
'name' => 'int'
);
static function swaggerTypes() {
return self::$swaggerTypes;
}
@@ -71,7 +72,7 @@ class Model200Response implements ArrayAccess
static $attributeMap = array(
'name' => 'name'
);
static function attributeMap() {
return self::$attributeMap;
}
@@ -83,7 +84,7 @@ class Model200Response implements ArrayAccess
static $setters = array(
'name' => 'setName'
);
static function setters() {
return self::$setters;
}
@@ -108,13 +109,7 @@ class Model200Response implements ArrayAccess
* Associative array for storing property values
* @var mixed[]
*/
protected $container = array(
/**
* $container['name']
* @var int
*/
'name' => null,
);
protected $container = array();
/**
* Constructor
@@ -122,12 +117,9 @@ class Model200Response implements ArrayAccess
*/
public function __construct(array $data = null)
{
if ($data != null) {
$this->container['name'] = $data['name'];
}
$this->container['name'] = isset($data['name']) ? $data['name'] : null;
}
/**
* Gets name
* @return int

View File

@@ -34,6 +34,7 @@
namespace Swagger\Client\Model;
use \ArrayAccess;
/**
* ModelReturn Class Doc Comment
*
@@ -59,7 +60,7 @@ class ModelReturn implements ArrayAccess
static $swaggerTypes = array(
'return' => 'int'
);
static function swaggerTypes() {
return self::$swaggerTypes;
}
@@ -71,7 +72,7 @@ class ModelReturn implements ArrayAccess
static $attributeMap = array(
'return' => 'return'
);
static function attributeMap() {
return self::$attributeMap;
}
@@ -83,7 +84,7 @@ class ModelReturn implements ArrayAccess
static $setters = array(
'return' => 'setReturn'
);
static function setters() {
return self::$setters;
}
@@ -108,13 +109,7 @@ class ModelReturn implements ArrayAccess
* Associative array for storing property values
* @var mixed[]
*/
protected $container = array(
/**
* $container['return']
* @var int
*/
'return' => null,
);
protected $container = array();
/**
* Constructor
@@ -122,12 +117,9 @@ class ModelReturn implements ArrayAccess
*/
public function __construct(array $data = null)
{
if ($data != null) {
$this->container['return'] = $data['return'];
}
$this->container['return'] = isset($data['return']) ? $data['return'] : null;
}
/**
* Gets return
* @return int

View File

@@ -34,6 +34,7 @@
namespace Swagger\Client\Model;
use \ArrayAccess;
/**
* Name Class Doc Comment
*
@@ -61,7 +62,7 @@ class Name implements ArrayAccess
'snake_case' => 'int',
'property' => 'string'
);
static function swaggerTypes() {
return self::$swaggerTypes;
}
@@ -75,7 +76,7 @@ class Name implements ArrayAccess
'snake_case' => 'snake_case',
'property' => 'property'
);
static function attributeMap() {
return self::$attributeMap;
}
@@ -89,7 +90,7 @@ class Name implements ArrayAccess
'snake_case' => 'setSnakeCase',
'property' => 'setProperty'
);
static function setters() {
return self::$setters;
}
@@ -116,25 +117,7 @@ class Name implements ArrayAccess
* Associative array for storing property values
* @var mixed[]
*/
protected $container = array(
/**
* $container['name']
* @var int
*/
'name' => null,
/**
* $container['snake_case']
* @var int
*/
'snake_case' => null,
/**
* $container['property']
* @var string
*/
'property' => null,
);
protected $container = array();
/**
* Constructor
@@ -142,14 +125,11 @@ class Name implements ArrayAccess
*/
public function __construct(array $data = null)
{
if ($data != null) {
$this->container['name'] = $data['name'];
$this->container['snake_case'] = $data['snake_case'];
$this->container['property'] = $data['property'];
}
$this->container['name'] = isset($data['name']) ? $data['name'] : null;
$this->container['snake_case'] = isset($data['snake_case']) ? $data['snake_case'] : null;
$this->container['property'] = isset($data['property']) ? $data['property'] : null;
}
/**
* Gets name
* @return int
@@ -170,6 +150,7 @@ class Name implements ArrayAccess
$this->container['name'] = $name;
return $this;
}
/**
* Gets snake_case
* @return int
@@ -190,6 +171,7 @@ class Name implements ArrayAccess
$this->container['snake_case'] = $snake_case;
return $this;
}
/**
* Gets property
* @return string

View File

@@ -34,6 +34,7 @@
namespace Swagger\Client\Model;
use \ArrayAccess;
/**
* Order Class Doc Comment
*
@@ -64,7 +65,7 @@ class Order implements ArrayAccess
'status' => 'string',
'complete' => 'bool'
);
static function swaggerTypes() {
return self::$swaggerTypes;
}
@@ -81,7 +82,7 @@ class Order implements ArrayAccess
'status' => 'status',
'complete' => 'complete'
);
static function attributeMap() {
return self::$attributeMap;
}
@@ -98,7 +99,7 @@ class Order implements ArrayAccess
'status' => 'setStatus',
'complete' => 'setComplete'
);
static function setters() {
return self::$setters;
}
@@ -143,43 +144,7 @@ class Order implements ArrayAccess
* Associative array for storing property values
* @var mixed[]
*/
protected $container = array(
/**
* $container['id']
* @var int
*/
'id' => null,
/**
* $container['pet_id']
* @var int
*/
'pet_id' => null,
/**
* $container['quantity']
* @var int
*/
'quantity' => null,
/**
* $container['ship_date']
* @var \DateTime
*/
'ship_date' => null,
/**
* $container['status'] Order Status
* @var string
*/
'status' => null,
/**
* $container['complete']
* @var bool
*/
'complete' => false,
);
protected $container = array();
/**
* Constructor
@@ -187,17 +152,14 @@ class Order implements ArrayAccess
*/
public function __construct(array $data = null)
{
if ($data != null) {
$this->container['id'] = $data['id'];
$this->container['pet_id'] = $data['pet_id'];
$this->container['quantity'] = $data['quantity'];
$this->container['ship_date'] = $data['ship_date'];
$this->container['status'] = $data['status'];
$this->container['complete'] = $data['complete'];
}
$this->container['id'] = isset($data['id']) ? $data['id'] : null;
$this->container['pet_id'] = isset($data['pet_id']) ? $data['pet_id'] : null;
$this->container['quantity'] = isset($data['quantity']) ? $data['quantity'] : null;
$this->container['ship_date'] = isset($data['ship_date']) ? $data['ship_date'] : null;
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
$this->container['complete'] = isset($data['complete']) ? $data['complete'] : false;
}
/**
* Gets id
* @return int
@@ -218,6 +180,7 @@ class Order implements ArrayAccess
$this->container['id'] = $id;
return $this;
}
/**
* Gets pet_id
* @return int
@@ -238,6 +201,7 @@ class Order implements ArrayAccess
$this->container['pet_id'] = $pet_id;
return $this;
}
/**
* Gets quantity
* @return int
@@ -258,6 +222,7 @@ class Order implements ArrayAccess
$this->container['quantity'] = $quantity;
return $this;
}
/**
* Gets ship_date
* @return \DateTime
@@ -278,6 +243,7 @@ class Order implements ArrayAccess
$this->container['ship_date'] = $ship_date;
return $this;
}
/**
* Gets status
* @return string
@@ -301,6 +267,7 @@ class Order implements ArrayAccess
$this->container['status'] = $status;
return $this;
}
/**
* Gets complete
* @return bool

View File

@@ -34,6 +34,7 @@
namespace Swagger\Client\Model;
use \ArrayAccess;
/**
* Pet Class Doc Comment
*
@@ -64,7 +65,7 @@ class Pet implements ArrayAccess
'tags' => '\Swagger\Client\Model\Tag[]',
'status' => 'string'
);
static function swaggerTypes() {
return self::$swaggerTypes;
}
@@ -81,7 +82,7 @@ class Pet implements ArrayAccess
'tags' => 'tags',
'status' => 'status'
);
static function attributeMap() {
return self::$attributeMap;
}
@@ -98,7 +99,7 @@ class Pet implements ArrayAccess
'tags' => 'setTags',
'status' => 'setStatus'
);
static function setters() {
return self::$setters;
}
@@ -143,43 +144,7 @@ class Pet implements ArrayAccess
* Associative array for storing property values
* @var mixed[]
*/
protected $container = array(
/**
* $container['id']
* @var int
*/
'id' => null,
/**
* $container['category']
* @var \Swagger\Client\Model\Category
*/
'category' => null,
/**
* $container['name']
* @var string
*/
'name' => null,
/**
* $container['photo_urls']
* @var string[]
*/
'photo_urls' => null,
/**
* $container['tags']
* @var \Swagger\Client\Model\Tag[]
*/
'tags' => null,
/**
* $container['status'] pet status in the store
* @var string
*/
'status' => null,
);
protected $container = array();
/**
* Constructor
@@ -187,17 +152,14 @@ class Pet implements ArrayAccess
*/
public function __construct(array $data = null)
{
if ($data != null) {
$this->container['id'] = $data['id'];
$this->container['category'] = $data['category'];
$this->container['name'] = $data['name'];
$this->container['photo_urls'] = $data['photo_urls'];
$this->container['tags'] = $data['tags'];
$this->container['status'] = $data['status'];
}
$this->container['id'] = isset($data['id']) ? $data['id'] : null;
$this->container['category'] = isset($data['category']) ? $data['category'] : null;
$this->container['name'] = isset($data['name']) ? $data['name'] : null;
$this->container['photo_urls'] = isset($data['photo_urls']) ? $data['photo_urls'] : null;
$this->container['tags'] = isset($data['tags']) ? $data['tags'] : null;
$this->container['status'] = isset($data['status']) ? $data['status'] : null;
}
/**
* Gets id
* @return int
@@ -218,6 +180,7 @@ class Pet implements ArrayAccess
$this->container['id'] = $id;
return $this;
}
/**
* Gets category
* @return \Swagger\Client\Model\Category
@@ -238,6 +201,7 @@ class Pet implements ArrayAccess
$this->container['category'] = $category;
return $this;
}
/**
* Gets name
* @return string
@@ -258,6 +222,7 @@ class Pet implements ArrayAccess
$this->container['name'] = $name;
return $this;
}
/**
* Gets photo_urls
* @return string[]
@@ -278,6 +243,7 @@ class Pet implements ArrayAccess
$this->container['photo_urls'] = $photo_urls;
return $this;
}
/**
* Gets tags
* @return \Swagger\Client\Model\Tag[]
@@ -298,6 +264,7 @@ class Pet implements ArrayAccess
$this->container['tags'] = $tags;
return $this;
}
/**
* Gets status
* @return string

View File

@@ -34,6 +34,7 @@
namespace Swagger\Client\Model;
use \ArrayAccess;
/**
* SpecialModelName Class Doc Comment
*
@@ -59,7 +60,7 @@ class SpecialModelName implements ArrayAccess
static $swaggerTypes = array(
'special_property_name' => 'int'
);
static function swaggerTypes() {
return self::$swaggerTypes;
}
@@ -71,7 +72,7 @@ class SpecialModelName implements ArrayAccess
static $attributeMap = array(
'special_property_name' => '$special[property.name]'
);
static function attributeMap() {
return self::$attributeMap;
}
@@ -83,7 +84,7 @@ class SpecialModelName implements ArrayAccess
static $setters = array(
'special_property_name' => 'setSpecialPropertyName'
);
static function setters() {
return self::$setters;
}
@@ -108,13 +109,7 @@ class SpecialModelName implements ArrayAccess
* Associative array for storing property values
* @var mixed[]
*/
protected $container = array(
/**
* $container['special_property_name']
* @var int
*/
'special_property_name' => null,
);
protected $container = array();
/**
* Constructor
@@ -122,12 +117,9 @@ class SpecialModelName implements ArrayAccess
*/
public function __construct(array $data = null)
{
if ($data != null) {
$this->container['special_property_name'] = $data['special_property_name'];
}
$this->container['special_property_name'] = isset($data['special_property_name']) ? $data['special_property_name'] : null;
}
/**
* Gets special_property_name
* @return int

View File

@@ -34,6 +34,7 @@
namespace Swagger\Client\Model;
use \ArrayAccess;
/**
* Tag Class Doc Comment
*
@@ -60,7 +61,7 @@ class Tag implements ArrayAccess
'id' => 'int',
'name' => 'string'
);
static function swaggerTypes() {
return self::$swaggerTypes;
}
@@ -73,7 +74,7 @@ class Tag implements ArrayAccess
'id' => 'id',
'name' => 'name'
);
static function attributeMap() {
return self::$attributeMap;
}
@@ -86,7 +87,7 @@ class Tag implements ArrayAccess
'id' => 'setId',
'name' => 'setName'
);
static function setters() {
return self::$setters;
}
@@ -112,19 +113,7 @@ class Tag implements ArrayAccess
* Associative array for storing property values
* @var mixed[]
*/
protected $container = array(
/**
* $container['id']
* @var int
*/
'id' => null,
/**
* $container['name']
* @var string
*/
'name' => null,
);
protected $container = array();
/**
* Constructor
@@ -132,13 +121,10 @@ class Tag implements ArrayAccess
*/
public function __construct(array $data = null)
{
if ($data != null) {
$this->container['id'] = $data['id'];
$this->container['name'] = $data['name'];
}
$this->container['id'] = isset($data['id']) ? $data['id'] : null;
$this->container['name'] = isset($data['name']) ? $data['name'] : null;
}
/**
* Gets id
* @return int
@@ -159,6 +145,7 @@ class Tag implements ArrayAccess
$this->container['id'] = $id;
return $this;
}
/**
* Gets name
* @return string

View File

@@ -34,6 +34,7 @@
namespace Swagger\Client\Model;
use \ArrayAccess;
/**
* User Class Doc Comment
*
@@ -66,7 +67,7 @@ class User implements ArrayAccess
'phone' => 'string',
'user_status' => 'int'
);
static function swaggerTypes() {
return self::$swaggerTypes;
}
@@ -85,7 +86,7 @@ class User implements ArrayAccess
'phone' => 'phone',
'user_status' => 'userStatus'
);
static function attributeMap() {
return self::$attributeMap;
}
@@ -104,7 +105,7 @@ class User implements ArrayAccess
'phone' => 'setPhone',
'user_status' => 'setUserStatus'
);
static function setters() {
return self::$setters;
}
@@ -136,55 +137,7 @@ class User implements ArrayAccess
* Associative array for storing property values
* @var mixed[]
*/
protected $container = array(
/**
* $container['id']
* @var int
*/
'id' => null,
/**
* $container['username']
* @var string
*/
'username' => null,
/**
* $container['first_name']
* @var string
*/
'first_name' => null,
/**
* $container['last_name']
* @var string
*/
'last_name' => null,
/**
* $container['email']
* @var string
*/
'email' => null,
/**
* $container['password']
* @var string
*/
'password' => null,
/**
* $container['phone']
* @var string
*/
'phone' => null,
/**
* $container['user_status'] User Status
* @var int
*/
'user_status' => null,
);
protected $container = array();
/**
* Constructor
@@ -192,19 +145,16 @@ class User implements ArrayAccess
*/
public function __construct(array $data = null)
{
if ($data != null) {
$this->container['id'] = $data['id'];
$this->container['username'] = $data['username'];
$this->container['first_name'] = $data['first_name'];
$this->container['last_name'] = $data['last_name'];
$this->container['email'] = $data['email'];
$this->container['password'] = $data['password'];
$this->container['phone'] = $data['phone'];
$this->container['user_status'] = $data['user_status'];
}
$this->container['id'] = isset($data['id']) ? $data['id'] : null;
$this->container['username'] = isset($data['username']) ? $data['username'] : null;
$this->container['first_name'] = isset($data['first_name']) ? $data['first_name'] : null;
$this->container['last_name'] = isset($data['last_name']) ? $data['last_name'] : null;
$this->container['email'] = isset($data['email']) ? $data['email'] : null;
$this->container['password'] = isset($data['password']) ? $data['password'] : null;
$this->container['phone'] = isset($data['phone']) ? $data['phone'] : null;
$this->container['user_status'] = isset($data['user_status']) ? $data['user_status'] : null;
}
/**
* Gets id
* @return int
@@ -225,6 +175,7 @@ class User implements ArrayAccess
$this->container['id'] = $id;
return $this;
}
/**
* Gets username
* @return string
@@ -245,6 +196,7 @@ class User implements ArrayAccess
$this->container['username'] = $username;
return $this;
}
/**
* Gets first_name
* @return string
@@ -265,6 +217,7 @@ class User implements ArrayAccess
$this->container['first_name'] = $first_name;
return $this;
}
/**
* Gets last_name
* @return string
@@ -285,6 +238,7 @@ class User implements ArrayAccess
$this->container['last_name'] = $last_name;
return $this;
}
/**
* Gets email
* @return string
@@ -305,6 +259,7 @@ class User implements ArrayAccess
$this->container['email'] = $email;
return $this;
}
/**
* Gets password
* @return string
@@ -325,6 +280,7 @@ class User implements ArrayAccess
$this->container['password'] = $password;
return $this;
}
/**
* Gets phone
* @return string
@@ -345,6 +301,7 @@ class User implements ArrayAccess
$this->container['phone'] = $phone;
return $this;
}
/**
* Gets user_status
* @return int