Regenerate PHP petstore sample

This commit is contained in:
Arne Jørgensen
2016-03-16 13:08:09 +01:00
parent 3823612674
commit 55ef72d47e
9 changed files with 196 additions and 144 deletions

View File

@@ -51,12 +51,12 @@ class InlineResponse200 implements ArrayAccess
* @var string[]
*/
static $swaggerTypes = array(
'tags' => '\Swagger\Client\Model\Tag[]',
'photo_urls' => 'string[]',
'name' => 'string',
'id' => 'int',
'category' => 'object',
'status' => 'string',
'name' => 'string',
'photo_urls' => 'string[]'
'tags' => '\Swagger\Client\Model\Tag[]',
'status' => 'string'
);
/**
@@ -64,12 +64,12 @@ class InlineResponse200 implements ArrayAccess
* @var string[]
*/
static $attributeMap = array(
'tags' => 'tags',
'photo_urls' => 'photoUrls',
'name' => 'name',
'id' => 'id',
'category' => 'category',
'status' => 'status',
'name' => 'name',
'photo_urls' => 'photoUrls'
'tags' => 'tags',
'status' => 'status'
);
/**
@@ -77,12 +77,12 @@ class InlineResponse200 implements ArrayAccess
* @var string[]
*/
static $setters = array(
'tags' => 'setTags',
'photo_urls' => 'setPhotoUrls',
'name' => 'setName',
'id' => 'setId',
'category' => 'setCategory',
'status' => 'setStatus',
'name' => 'setName',
'photo_urls' => 'setPhotoUrls'
'tags' => 'setTags',
'status' => 'setStatus'
);
/**
@@ -90,20 +90,26 @@ class InlineResponse200 implements ArrayAccess
* @var string[]
*/
static $getters = array(
'tags' => 'getTags',
'photo_urls' => 'getPhotoUrls',
'name' => 'getName',
'id' => 'getId',
'category' => 'getCategory',
'status' => 'getStatus',
'name' => 'getName',
'photo_urls' => 'getPhotoUrls'
'tags' => 'getTags',
'status' => 'getStatus'
);
/**
* $tags
* @var \Swagger\Client\Model\Tag[]
* $photo_urls
* @var string[]
*/
protected $tags;
protected $photo_urls;
/**
* $name
* @var string
*/
protected $name;
/**
* $id
@@ -117,24 +123,18 @@ class InlineResponse200 implements ArrayAccess
*/
protected $category;
/**
* $tags
* @var \Swagger\Client\Model\Tag[]
*/
protected $tags;
/**
* $status pet status in the store
* @var string
*/
protected $status;
/**
* $name
* @var string
*/
protected $name;
/**
* $photo_urls
* @var string[]
*/
protected $photo_urls;
/**
* Constructor
@@ -143,33 +143,54 @@ class InlineResponse200 implements ArrayAccess
public function __construct(array $data = null)
{
if ($data != null) {
$this->tags = $data["tags"];
$this->photo_urls = $data["photo_urls"];
$this->name = $data["name"];
$this->id = $data["id"];
$this->category = $data["category"];
$this->tags = $data["tags"];
$this->status = $data["status"];
$this->name = $data["name"];
$this->photo_urls = $data["photo_urls"];
}
}
/**
* Gets tags
* @return \Swagger\Client\Model\Tag[]
* Gets photo_urls
* @return string[]
*/
public function getTags()
public function getPhotoUrls()
{
return $this->tags;
return $this->photo_urls;
}
/**
* Sets tags
* @param \Swagger\Client\Model\Tag[] $tags
* Sets photo_urls
* @param string[] $photo_urls
* @return $this
*/
public function setTags($tags)
public function setPhotoUrls($photo_urls)
{
$this->tags = $tags;
$this->photo_urls = $photo_urls;
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;
}
@@ -215,6 +236,27 @@ class InlineResponse200 implements ArrayAccess
return $this;
}
/**
* 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 status
* @return string
@@ -239,48 +281,6 @@ class InlineResponse200 implements ArrayAccess
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