Merge remote-tracking branch 'origin/4.2.x' into 5.0.x

This commit is contained in:
William Cheng
2019-09-22 21:00:38 +08:00
2432 changed files with 40079 additions and 14159 deletions

View File

@@ -59,6 +59,7 @@ class TypeHolderExample implements ModelInterface, ArrayAccess
protected static $openAPITypes = [
'string_item' => 'string',
'number_item' => 'float',
'float_item' => 'float',
'integer_item' => 'int',
'bool_item' => 'bool',
'array_item' => 'int[]'
@@ -72,6 +73,7 @@ class TypeHolderExample implements ModelInterface, ArrayAccess
protected static $openAPIFormats = [
'string_item' => null,
'number_item' => null,
'float_item' => 'float',
'integer_item' => null,
'bool_item' => null,
'array_item' => null
@@ -106,6 +108,7 @@ class TypeHolderExample implements ModelInterface, ArrayAccess
protected static $attributeMap = [
'string_item' => 'string_item',
'number_item' => 'number_item',
'float_item' => 'float_item',
'integer_item' => 'integer_item',
'bool_item' => 'bool_item',
'array_item' => 'array_item'
@@ -119,6 +122,7 @@ class TypeHolderExample implements ModelInterface, ArrayAccess
protected static $setters = [
'string_item' => 'setStringItem',
'number_item' => 'setNumberItem',
'float_item' => 'setFloatItem',
'integer_item' => 'setIntegerItem',
'bool_item' => 'setBoolItem',
'array_item' => 'setArrayItem'
@@ -132,6 +136,7 @@ class TypeHolderExample implements ModelInterface, ArrayAccess
protected static $getters = [
'string_item' => 'getStringItem',
'number_item' => 'getNumberItem',
'float_item' => 'getFloatItem',
'integer_item' => 'getIntegerItem',
'bool_item' => 'getBoolItem',
'array_item' => 'getArrayItem'
@@ -199,6 +204,7 @@ class TypeHolderExample implements ModelInterface, ArrayAccess
{
$this->container['string_item'] = isset($data['string_item']) ? $data['string_item'] : null;
$this->container['number_item'] = isset($data['number_item']) ? $data['number_item'] : null;
$this->container['float_item'] = isset($data['float_item']) ? $data['float_item'] : null;
$this->container['integer_item'] = isset($data['integer_item']) ? $data['integer_item'] : null;
$this->container['bool_item'] = isset($data['bool_item']) ? $data['bool_item'] : null;
$this->container['array_item'] = isset($data['array_item']) ? $data['array_item'] : null;
@@ -219,6 +225,9 @@ class TypeHolderExample implements ModelInterface, ArrayAccess
if ($this->container['number_item'] === null) {
$invalidProperties[] = "'number_item' can't be null";
}
if ($this->container['float_item'] === null) {
$invalidProperties[] = "'float_item' can't be null";
}
if ($this->container['integer_item'] === null) {
$invalidProperties[] = "'integer_item' can't be null";
}
@@ -291,6 +300,30 @@ class TypeHolderExample implements ModelInterface, ArrayAccess
return $this;
}
/**
* Gets float_item
*
* @return float
*/
public function getFloatItem()
{
return $this->container['float_item'];
}
/**
* Sets float_item
*
* @param float $float_item float_item
*
* @return $this
*/
public function setFloatItem($float_item)
{
$this->container['float_item'] = $float_item;
return $this;
}
/**
* Gets integer_item
*