Merge remote-tracking branch 'origin/5.3.x' into 6.0.x

This commit is contained in:
William Cheng
2021-07-27 11:52:19 +08:00
1011 changed files with 34058 additions and 5848 deletions

View File

@@ -2,7 +2,7 @@
/**
* AdditionalPropertiesClass
*
* PHP version 7.2
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* Animal
*
* PHP version 7.2
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* ApiResponse
*
* PHP version 7.2
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* ArrayOfArrayOfNumberOnly
*
* PHP version 7.2
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* ArrayOfNumberOnly
*
* PHP version 7.2
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* ArrayTest
*
* PHP version 7.2
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* Capitalization
*
* PHP version 7.2
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* Cat
*
* PHP version 7.2
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* CatAllOf
*
* PHP version 7.2
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* Category
*
* PHP version 7.2
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* ClassModel
*
* PHP version 7.2
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* Client
*
* PHP version 7.2
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client

View File

@@ -0,0 +1,320 @@
<?php
/**
* DeprecatedObject
*
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.3.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
namespace OpenAPI\Client\Model;
use \ArrayAccess;
use \OpenAPI\Client\ObjectSerializer;
/**
* DeprecatedObject Class Doc Comment
*
* @category Class
* @package OpenAPI\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
* @implements \ArrayAccess<TKey, TValue>
* @template TKey int|null
* @template TValue mixed|null
*/
class DeprecatedObject implements ModelInterface, ArrayAccess, \JsonSerializable
{
public const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $openAPIModelName = 'DeprecatedObject';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $openAPITypes = [
'name' => 'string'
];
/**
* Array of property to format mappings. Used for (de)serialization
*
* @var string[]
* @phpstan-var array<string, string|null>
* @psalm-var array<string, string|null>
*/
protected static $openAPIFormats = [
'name' => null
];
/**
* Array of property to type mappings. Used for (de)serialization
*
* @return array
*/
public static function openAPITypes()
{
return self::$openAPITypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
*
* @return array
*/
public static function openAPIFormats()
{
return self::$openAPIFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
*
* @var string[]
*/
protected static $attributeMap = [
'name' => 'name'
];
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @var string[]
*/
protected static $setters = [
'name' => 'setName'
];
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @var string[]
*/
protected static $getters = [
'name' => 'getName'
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$openAPIModelName;
}
/**
* Associative array for storing property values
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['name'] = $data['name'] ?? null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
*
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Gets name
*
* @return string|null
*/
public function getName()
{
return $this->container['name'];
}
/**
* Sets name
*
* @param string|null $name name
*
* @return self
*/
public function setName($name)
{
$this->container['name'] = $name;
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|null
*/
public function offsetGet($offset)
{
return $this->container[$offset] ?? null;
}
/**
* Sets value based on offset.
*
* @param int|null $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]);
}
/**
* Serializes the object to a value that can be serialized natively by json_encode().
* @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php
*
* @return mixed Returns data which can be serialized by json_encode(), which is a value
* of any type other than a resource.
*/
public function jsonSerialize()
{
return ObjectSerializer::sanitizeForSerialization($this);
}
/**
* Gets the string presentation of the object
*
* @return string
*/
public function __toString()
{
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
/**
* Gets a header-safe presentation of the object
*
* @return string
*/
public function toHeaderValue()
{
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -2,7 +2,7 @@
/**
* Dog
*
* PHP version 7.2
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* DogAllOf
*
* PHP version 7.2
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* EnumArrays
*
* PHP version 7.2
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* EnumClass
*
* PHP version 7.2
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* EnumTest
*
* PHP version 7.2
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* File
*
* PHP version 7.2
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* FileSchemaTestClass
*
* PHP version 7.2
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* Foo
*
* PHP version 7.2
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* FormatTest
*
* PHP version 7.2
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* HasOnlyReadOnly
*
* PHP version 7.2
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* HealthCheckResult
*
* PHP version 7.2
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* InlineResponseDefault
*
* PHP version 7.2
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* MapTest
*
* PHP version 7.2
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* MixedPropertiesAndAdditionalPropertiesClass
*
* PHP version 7.2
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* Model200Response
*
* PHP version 7.2
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* ModelInterface
*
* PHP version 7.2
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client\Model

View File

@@ -2,7 +2,7 @@
/**
* ModelList
*
* PHP version 7.2
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* ModelReturn
*
* PHP version 7.2
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* Name
*
* PHP version 7.2
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* NullableClass
*
* PHP version 7.2
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* NumberOnly
*
* PHP version 7.2
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client

View File

@@ -0,0 +1,410 @@
<?php
/**
* ObjectWithDeprecatedFields
*
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
/**
* OpenAPI Petstore
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 5.3.0-SNAPSHOT
*/
/**
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
namespace OpenAPI\Client\Model;
use \ArrayAccess;
use \OpenAPI\Client\ObjectSerializer;
/**
* ObjectWithDeprecatedFields Class Doc Comment
*
* @category Class
* @package OpenAPI\Client
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
* @implements \ArrayAccess<TKey, TValue>
* @template TKey int|null
* @template TValue mixed|null
*/
class ObjectWithDeprecatedFields implements ModelInterface, ArrayAccess, \JsonSerializable
{
public const DISCRIMINATOR = null;
/**
* The original name of the model.
*
* @var string
*/
protected static $openAPIModelName = 'ObjectWithDeprecatedFields';
/**
* Array of property to type mappings. Used for (de)serialization
*
* @var string[]
*/
protected static $openAPITypes = [
'uuid' => 'string',
'id' => 'float',
'deprecated_ref' => '\OpenAPI\Client\Model\DeprecatedObject',
'bars' => 'string[]'
];
/**
* Array of property to format mappings. Used for (de)serialization
*
* @var string[]
* @phpstan-var array<string, string|null>
* @psalm-var array<string, string|null>
*/
protected static $openAPIFormats = [
'uuid' => null,
'id' => null,
'deprecated_ref' => null,
'bars' => null
];
/**
* Array of property to type mappings. Used for (de)serialization
*
* @return array
*/
public static function openAPITypes()
{
return self::$openAPITypes;
}
/**
* Array of property to format mappings. Used for (de)serialization
*
* @return array
*/
public static function openAPIFormats()
{
return self::$openAPIFormats;
}
/**
* Array of attributes where the key is the local name,
* and the value is the original name
*
* @var string[]
*/
protected static $attributeMap = [
'uuid' => 'uuid',
'id' => 'id',
'deprecated_ref' => 'deprecatedRef',
'bars' => 'bars'
];
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @var string[]
*/
protected static $setters = [
'uuid' => 'setUuid',
'id' => 'setId',
'deprecated_ref' => 'setDeprecatedRef',
'bars' => 'setBars'
];
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @var string[]
*/
protected static $getters = [
'uuid' => 'getUuid',
'id' => 'getId',
'deprecated_ref' => 'getDeprecatedRef',
'bars' => 'getBars'
];
/**
* Array of attributes where the key is the local name,
* and the value is the original name
*
* @return array
*/
public static function attributeMap()
{
return self::$attributeMap;
}
/**
* Array of attributes to setter functions (for deserialization of responses)
*
* @return array
*/
public static function setters()
{
return self::$setters;
}
/**
* Array of attributes to getter functions (for serialization of requests)
*
* @return array
*/
public static function getters()
{
return self::$getters;
}
/**
* The original name of the model.
*
* @return string
*/
public function getModelName()
{
return self::$openAPIModelName;
}
/**
* Associative array for storing property values
*
* @var mixed[]
*/
protected $container = [];
/**
* Constructor
*
* @param mixed[] $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
{
$this->container['uuid'] = $data['uuid'] ?? null;
$this->container['id'] = $data['id'] ?? null;
$this->container['deprecated_ref'] = $data['deprecated_ref'] ?? null;
$this->container['bars'] = $data['bars'] ?? null;
}
/**
* Show all the invalid properties with reasons.
*
* @return array invalid properties with reasons
*/
public function listInvalidProperties()
{
$invalidProperties = [];
return $invalidProperties;
}
/**
* Validate all the properties in the model
* return true if all passed
*
* @return bool True if all properties are valid
*/
public function valid()
{
return count($this->listInvalidProperties()) === 0;
}
/**
* Gets uuid
*
* @return string|null
*/
public function getUuid()
{
return $this->container['uuid'];
}
/**
* Sets uuid
*
* @param string|null $uuid uuid
*
* @return self
*/
public function setUuid($uuid)
{
$this->container['uuid'] = $uuid;
return $this;
}
/**
* Gets id
*
* @return float|null
*/
public function getId()
{
return $this->container['id'];
}
/**
* Sets id
*
* @param float|null $id id
*
* @return self
*/
public function setId($id)
{
$this->container['id'] = $id;
return $this;
}
/**
* Gets deprecated_ref
*
* @return \OpenAPI\Client\Model\DeprecatedObject|null
*/
public function getDeprecatedRef()
{
return $this->container['deprecated_ref'];
}
/**
* Sets deprecated_ref
*
* @param \OpenAPI\Client\Model\DeprecatedObject|null $deprecated_ref deprecated_ref
*
* @return self
*/
public function setDeprecatedRef($deprecated_ref)
{
$this->container['deprecated_ref'] = $deprecated_ref;
return $this;
}
/**
* Gets bars
*
* @return string[]|null
*/
public function getBars()
{
return $this->container['bars'];
}
/**
* Sets bars
*
* @param string[]|null $bars bars
*
* @return self
*/
public function setBars($bars)
{
$this->container['bars'] = $bars;
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|null
*/
public function offsetGet($offset)
{
return $this->container[$offset] ?? null;
}
/**
* Sets value based on offset.
*
* @param int|null $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]);
}
/**
* Serializes the object to a value that can be serialized natively by json_encode().
* @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php
*
* @return mixed Returns data which can be serialized by json_encode(), which is a value
* of any type other than a resource.
*/
public function jsonSerialize()
{
return ObjectSerializer::sanitizeForSerialization($this);
}
/**
* Gets the string presentation of the object
*
* @return string
*/
public function __toString()
{
return json_encode(
ObjectSerializer::sanitizeForSerialization($this),
JSON_PRETTY_PRINT
);
}
/**
* Gets a header-safe presentation of the object
*
* @return string
*/
public function toHeaderValue()
{
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}
}

View File

@@ -2,7 +2,7 @@
/**
* Order
*
* PHP version 7.2
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* OuterComposite
*
* PHP version 7.2
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* OuterEnum
*
* PHP version 7.2
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* OuterEnumDefaultValue
*
* PHP version 7.2
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* OuterEnumInteger
*
* PHP version 7.2
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* OuterEnumIntegerDefaultValue
*
* PHP version 7.2
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* OuterObjectWithEnumProperty
*
* PHP version 7.2
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* Pet
*
* PHP version 7.2
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* ReadOnlyFirst
*
* PHP version 7.2
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* SpecialModelName
*
* PHP version 7.2
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* Tag
*
* PHP version 7.2
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client

View File

@@ -2,7 +2,7 @@
/**
* User
*
* PHP version 7.2
* PHP version 7.3
*
* @category Class
* @package OpenAPI\Client