diff --git a/modules/openapi-generator/src/main/resources/php-nextgen/Configuration.mustache b/modules/openapi-generator/src/main/resources/php-nextgen/Configuration.mustache index c55488301d49..adb3e3bedc45 100644 --- a/modules/openapi-generator/src/main/resources/php-nextgen/Configuration.mustache +++ b/modules/openapi-generator/src/main/resources/php-nextgen/Configuration.mustache @@ -492,13 +492,13 @@ class Configuration } /** - * Returns URL based on host settings, index and variables - * - * @param array $hostSettings array of host settings, generated from getHostSettings() or equivalent from the API clients - * @param int $hostIndex index of the host settings - * @param array|null $variables hash of variable and the corresponding value (optional) - * @return string URL based on host settings - */ + * Returns URL based on host settings, index and variables + * + * @param array $hostSettings array of host settings, generated from getHostSettings() or equivalent from the API clients + * @param int $hostIndex index of the host settings + * @param array|null $variables hash of variable and the corresponding value (optional) + * @return string URL based on host settings + */ public static function getHostString(array $hostSettings, int $hostIndex, ?array $variables = null): string { if (null === $variables) { diff --git a/modules/openapi-generator/src/main/resources/php-nextgen/HeaderSelector.mustache b/modules/openapi-generator/src/main/resources/php-nextgen/HeaderSelector.mustache index c0fc8f599083..847e6bbfb5d7 100644 --- a/modules/openapi-generator/src/main/resources/php-nextgen/HeaderSelector.mustache +++ b/modules/openapi-generator/src/main/resources/php-nextgen/HeaderSelector.mustache @@ -86,13 +86,13 @@ class HeaderSelector } /** - * Create an Accept header string from the given "Accept" headers array, recalculating all weights - * - * @param string[] $accept Array of Accept Headers - * @param string[] $headersWithJson Array of Accept Headers of type "json" - * - * @return string "Accept" Header (e.g. "application/json, text/html; q=0.9") - */ + * Create an Accept header string from the given "Accept" headers array, recalculating all weights + * + * @param string[] $accept Array of Accept Headers + * @param string[] $headersWithJson Array of Accept Headers of type "json" + * + * @return string "Accept" Header (e.g. "application/json, text/html; q=0.9") + */ private function getAcceptHeaderWithAdjustedWeight(array $accept, array $headersWithJson): string { $processedHeaders = [ diff --git a/modules/openapi-generator/src/main/resources/php-nextgen/api.mustache b/modules/openapi-generator/src/main/resources/php-nextgen/api.mustache index ce84b768d951..93b68becc4c2 100644 --- a/modules/openapi-generator/src/main/resources/php-nextgen/api.mustache +++ b/modules/openapi-generator/src/main/resources/php-nextgen/api.mustache @@ -569,15 +569,15 @@ use {{invokerPackage}}\ObjectSerializer; {{/exts.x-group-parameters}} {{#servers}} {{#-first}} - * This operation contains host(s) defined in the OpenAPI spec. Use 'hostIndex' to select the host. - * if needed, use the 'variables' parameter to pass variables to the host. + * This operation contains host(s) defined in the OpenAPI spec. Use 'hostIndex' to select the host. + * if needed, use the 'variables' parameter to pass variables to the host. {{/-first}} * URL: {{{url}}} {{#variables}} {{#-first}} * Variables: {{/-first}} - * - {{{name}}}: {{{description}}}{{^description}} No description provided{{/description}}{{#enumValues}} + * - {{{name}}}: {{{description}}}{{^description}} No description provided{{/description}}{{#enumValues}} {{#-first}} * Allowed values: {{/-first}} diff --git a/modules/openapi-generator/src/main/resources/php-nextgen/model_enum.mustache b/modules/openapi-generator/src/main/resources/php-nextgen/model_enum.mustache index cf8b0a7484b1..aa553ed05647 100644 --- a/modules/openapi-generator/src/main/resources/php-nextgen/model_enum.mustache +++ b/modules/openapi-generator/src/main/resources/php-nextgen/model_enum.mustache @@ -4,8 +4,8 @@ enum {{classname}}: {{exts.x-php-enum-type}} {{#enumVars}} {{#enumDescription}} /** - * {{enumDescription}} - */ + * {{enumDescription}} + */ {{/enumDescription}} case {{{name}}} = {{{value}}}; {{^-last}} diff --git a/modules/openapi-generator/src/main/resources/php-nextgen/model_generic.mustache b/modules/openapi-generator/src/main/resources/php-nextgen/model_generic.mustache index 73448b8df168..0fa97973d9a9 100644 --- a/modules/openapi-generator/src/main/resources/php-nextgen/model_generic.mustache +++ b/modules/openapi-generator/src/main/resources/php-nextgen/model_generic.mustache @@ -3,47 +3,47 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}}{{/parentSchema}}{{^par public const DISCRIMINATOR = {{#discriminator}}'{{discriminatorName}}'{{/discriminator}}{{^discriminator}}null{{/discriminator}}; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = '{{name}}'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ {{#vars}}'{{name}}' => '{{{dataType}}}'{{^-last}}, {{/-last}}{{/vars}} ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ {{#vars}}'{{name}}' => {{#dataFormat}}'{{{.}}}'{{/dataFormat}}{{^dataFormat}}null{{/dataFormat}}{{^-last}}, {{/-last}}{{/vars}} ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ {{#vars}}'{{name}}' => {{#isNullable}}true{{/isNullable}}{{^isNullable}}false{{/isNullable}}{{^-last}}, {{/-last}}{{/vars}} ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -262,14 +262,14 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}}{{/parentSchema}}{{^par } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/modules/openapi-generator/src/main/resources/php-symfony/model_generic.mustache b/modules/openapi-generator/src/main/resources/php-symfony/model_generic.mustache index d992f8fb1933..54219304ffab 100644 --- a/modules/openapi-generator/src/main/resources/php-symfony/model_generic.mustache +++ b/modules/openapi-generator/src/main/resources/php-symfony/model_generic.mustache @@ -31,12 +31,12 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}} {{/parentSchema}} } /** - * Sets {{name}}. - * - * @param {{{vendorExtensions.x-comment-type}}} ${{name}}{{#description}} {{{.}}}{{/description}} - * - * @return $this - */ + * Sets {{name}}. + * + * @param {{{vendorExtensions.x-comment-type}}} ${{name}}{{#description}} {{{.}}}{{/description}} + * + * @return $this + */ public function {{setter}}({{#vendorExtensions.x-parameter-type}}{{vendorExtensions.x-parameter-type}} {{/vendorExtensions.x-parameter-type}}${{name}}{{^required}} = null{{/required}}): self { $this->{{name}} = ${{name}}; @@ -46,22 +46,22 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}} {{/parentSchema}} {{#isEnumRef}} /** - * Gets {{name}} for serialization. - * - * @return string|null - */ + * Gets {{name}} for serialization. + * + * @return string|null + */ public function getSerialized{{nameInPascalCase}}(): string|null { return !is_null($this->{{name}}?->value) ? (string) $this->{{name}}->value : null; } /** - * Sets {{name}}. - * - * @param string|{{{vendorExtensions.x-comment-type}}} ${{name}}{{#description}} {{{.}}}{{/description}} - * - * @return $this - */ + * Sets {{name}}. + * + * @param string|{{{vendorExtensions.x-comment-type}}} ${{name}}{{#description}} {{{.}}}{{/description}} + * + * @return $this + */ public function setDeserialized{{nameInPascalCase}}(string|{{#vendorExtensions.x-comment-type}}{{vendorExtensions.x-comment-type}} {{/vendorExtensions.x-comment-type}}${{name}}{{^required}} = null{{/required}}): self { if (is_string(${{name}})) { @@ -78,10 +78,10 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}} {{/parentSchema}} {{#items}} {{#isEnumRef}} /** - * Gets {{name}} for serialization. - * - * @return array - */ + * Gets {{name}} for serialization. + * + * @return array + */ public function getSerialized{{nameInPascalCase}}(): array { return array_map( @@ -91,12 +91,12 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}} {{/parentSchema}} } /** - * Sets {{name}}. - * - * @param {{^required}}?{{/required}}array ${{name}}{{#description}} {{{.}}}{{/description}} - * - * @return $this - */ + * Sets {{name}}. + * + * @param {{^required}}?{{/required}}array ${{name}}{{#description}} {{{.}}}{{/description}} + * + * @return $this + */ public function setDeserialized{{nameInPascalCase}}({{^required}}?{{/required}}array ${{name}}{{^required}} = []{{/required}}): self { $this->{{name}} = array_map( diff --git a/modules/openapi-generator/src/main/resources/php-symfony/model_variables.mustache b/modules/openapi-generator/src/main/resources/php-symfony/model_variables.mustache index f52d6b065af2..0c62b48f96fc 100644 --- a/modules/openapi-generator/src/main/resources/php-symfony/model_variables.mustache +++ b/modules/openapi-generator/src/main/resources/php-symfony/model_variables.mustache @@ -31,8 +31,8 @@ * @Type("DateTime") {{/isDateTime}} {{#isEnumRef}} - * @Accessor(getter="getSerialized{{nameInPascalCase}}", setter="setDeserialized{{nameInPascalCase}}") - * @Type("string") + * @Accessor(getter="getSerialized{{nameInPascalCase}}", setter="setDeserialized{{nameInPascalCase}}") + * @Type("string") {{/isEnumRef}} {{^isDate}} {{^isDateTime}} @@ -42,7 +42,7 @@ {{/isDateTime}} {{/isDate}} {{/isContainer}} - */ + */ {{#required}} #[Assert\NotNull] {{^isPrimitiveType}} diff --git a/modules/openapi-generator/src/main/resources/php/model_generic.mustache b/modules/openapi-generator/src/main/resources/php/model_generic.mustache index f3a24d38e25a..94fb895fceb5 100644 --- a/modules/openapi-generator/src/main/resources/php/model_generic.mustache +++ b/modules/openapi-generator/src/main/resources/php/model_generic.mustache @@ -3,49 +3,49 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}}{{/parentSchema}}{{^par public const DISCRIMINATOR = {{#discriminator}}'{{discriminatorName}}'{{/discriminator}}{{^discriminator}}null{{/discriminator}}; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = '{{name}}'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ {{#vars}}'{{name}}' => '{{{dataType}}}'{{^-last}}, {{/-last}}{{/vars}} ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ {{#vars}}'{{name}}' => {{#dataFormat}}'{{{.}}}'{{/dataFormat}}{{^dataFormat}}null{{/dataFormat}}{{^-last}}, {{/-last}}{{/vars}} ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ {{#vars}}'{{name}}' => {{#isNullable}}true{{/isNullable}}{{^isNullable}}false{{/isNullable}}{{^-last}}, {{/-last}}{{/vars}} ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -251,14 +251,14 @@ class {{classname}} {{#parentSchema}}extends {{{parent}}}{{/parentSchema}}{{^par } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/echo_api/php-nextgen-streaming/src/Configuration.php b/samples/client/echo_api/php-nextgen-streaming/src/Configuration.php index 95180350b564..d35f646f267b 100644 --- a/samples/client/echo_api/php-nextgen-streaming/src/Configuration.php +++ b/samples/client/echo_api/php-nextgen-streaming/src/Configuration.php @@ -475,13 +475,13 @@ public function getHostSettings(): array } /** - * Returns URL based on host settings, index and variables - * - * @param array $hostSettings array of host settings, generated from getHostSettings() or equivalent from the API clients - * @param int $hostIndex index of the host settings - * @param array|null $variables hash of variable and the corresponding value (optional) - * @return string URL based on host settings - */ + * Returns URL based on host settings, index and variables + * + * @param array $hostSettings array of host settings, generated from getHostSettings() or equivalent from the API clients + * @param int $hostIndex index of the host settings + * @param array|null $variables hash of variable and the corresponding value (optional) + * @return string URL based on host settings + */ public static function getHostString(array $hostSettings, int $hostIndex, ?array $variables = null): string { if (null === $variables) { diff --git a/samples/client/echo_api/php-nextgen-streaming/src/HeaderSelector.php b/samples/client/echo_api/php-nextgen-streaming/src/HeaderSelector.php index 8ca8a78ca83f..6c6beb7ac3f1 100644 --- a/samples/client/echo_api/php-nextgen-streaming/src/HeaderSelector.php +++ b/samples/client/echo_api/php-nextgen-streaming/src/HeaderSelector.php @@ -95,13 +95,13 @@ private function selectAcceptHeader(array $accept): ?string } /** - * Create an Accept header string from the given "Accept" headers array, recalculating all weights - * - * @param string[] $accept Array of Accept Headers - * @param string[] $headersWithJson Array of Accept Headers of type "json" - * - * @return string "Accept" Header (e.g. "application/json, text/html; q=0.9") - */ + * Create an Accept header string from the given "Accept" headers array, recalculating all weights + * + * @param string[] $accept Array of Accept Headers + * @param string[] $headersWithJson Array of Accept Headers of type "json" + * + * @return string "Accept" Header (e.g. "application/json, text/html; q=0.9") + */ private function getAcceptHeaderWithAdjustedWeight(array $accept, array $headersWithJson): string { $processedHeaders = [ diff --git a/samples/client/echo_api/php-nextgen-streaming/src/Model/Bird.php b/samples/client/echo_api/php-nextgen-streaming/src/Model/Bird.php index 7f11e0bcc88b..84ce780b7690 100644 --- a/samples/client/echo_api/php-nextgen-streaming/src/Model/Bird.php +++ b/samples/client/echo_api/php-nextgen-streaming/src/Model/Bird.php @@ -47,47 +47,47 @@ class Bird implements ModelInterface, ArrayAccess, JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'Bird'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'size' => 'string', 'color' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'size' => null, 'color' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'size' => false, 'color' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -254,14 +254,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/echo_api/php-nextgen-streaming/src/Model/Category.php b/samples/client/echo_api/php-nextgen-streaming/src/Model/Category.php index 3f1130a9e024..a631027f7f49 100644 --- a/samples/client/echo_api/php-nextgen-streaming/src/Model/Category.php +++ b/samples/client/echo_api/php-nextgen-streaming/src/Model/Category.php @@ -47,47 +47,47 @@ class Category implements ModelInterface, ArrayAccess, JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'Category'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'id' => 'int', 'name' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'id' => 'int64', 'name' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'id' => false, 'name' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -254,14 +254,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/echo_api/php-nextgen-streaming/src/Model/DataQuery.php b/samples/client/echo_api/php-nextgen-streaming/src/Model/DataQuery.php index 261e408c904b..2190c51534fa 100644 --- a/samples/client/echo_api/php-nextgen-streaming/src/Model/DataQuery.php +++ b/samples/client/echo_api/php-nextgen-streaming/src/Model/DataQuery.php @@ -41,17 +41,17 @@ class DataQuery extends Query public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'DataQuery'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'suffix' => 'string', 'text' => 'string', @@ -59,10 +59,10 @@ class DataQuery extends Query ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'suffix' => null, 'text' => null, @@ -70,10 +70,10 @@ class DataQuery extends Query ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'suffix' => false, 'text' => false, @@ -81,10 +81,10 @@ class DataQuery extends Query ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -251,14 +251,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/echo_api/php-nextgen-streaming/src/Model/DefaultValue.php b/samples/client/echo_api/php-nextgen-streaming/src/Model/DefaultValue.php index 5d349d4619b4..b0401a074a96 100644 --- a/samples/client/echo_api/php-nextgen-streaming/src/Model/DefaultValue.php +++ b/samples/client/echo_api/php-nextgen-streaming/src/Model/DefaultValue.php @@ -48,17 +48,17 @@ class DefaultValue implements ModelInterface, ArrayAccess, JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'DefaultValue'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'array_string_enum_ref_default' => '\OpenAPI\Client\Model\StringEnumRef[]', 'array_string_enum_default' => 'string[]', @@ -71,10 +71,10 @@ class DefaultValue implements ModelInterface, ArrayAccess, JsonSerializable ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'array_string_enum_ref_default' => null, 'array_string_enum_default' => null, @@ -87,10 +87,10 @@ class DefaultValue implements ModelInterface, ArrayAccess, JsonSerializable ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'array_string_enum_ref_default' => false, 'array_string_enum_default' => false, @@ -103,10 +103,10 @@ class DefaultValue implements ModelInterface, ArrayAccess, JsonSerializable ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -314,14 +314,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/echo_api/php-nextgen-streaming/src/Model/NumberPropertiesOnly.php b/samples/client/echo_api/php-nextgen-streaming/src/Model/NumberPropertiesOnly.php index 73cbda58cae4..3035fcc6339d 100644 --- a/samples/client/echo_api/php-nextgen-streaming/src/Model/NumberPropertiesOnly.php +++ b/samples/client/echo_api/php-nextgen-streaming/src/Model/NumberPropertiesOnly.php @@ -47,17 +47,17 @@ class NumberPropertiesOnly implements ModelInterface, ArrayAccess, JsonSerializa public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'NumberPropertiesOnly'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'number' => 'float', 'float' => 'float', @@ -65,10 +65,10 @@ class NumberPropertiesOnly implements ModelInterface, ArrayAccess, JsonSerializa ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'number' => null, 'float' => 'float', @@ -76,10 +76,10 @@ class NumberPropertiesOnly implements ModelInterface, ArrayAccess, JsonSerializa ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'number' => false, 'float' => false, @@ -87,10 +87,10 @@ class NumberPropertiesOnly implements ModelInterface, ArrayAccess, JsonSerializa ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -261,14 +261,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/echo_api/php-nextgen-streaming/src/Model/Pet.php b/samples/client/echo_api/php-nextgen-streaming/src/Model/Pet.php index 2ee69b1b2a0a..b44680e762b9 100644 --- a/samples/client/echo_api/php-nextgen-streaming/src/Model/Pet.php +++ b/samples/client/echo_api/php-nextgen-streaming/src/Model/Pet.php @@ -47,17 +47,17 @@ class Pet implements ModelInterface, ArrayAccess, JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'Pet'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'id' => 'int', 'name' => 'string', @@ -68,10 +68,10 @@ class Pet implements ModelInterface, ArrayAccess, JsonSerializable ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'id' => 'int64', 'name' => null, @@ -82,10 +82,10 @@ class Pet implements ModelInterface, ArrayAccess, JsonSerializable ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'id' => false, 'name' => false, @@ -96,10 +96,10 @@ class Pet implements ModelInterface, ArrayAccess, JsonSerializable ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -299,14 +299,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/echo_api/php-nextgen-streaming/src/Model/Query.php b/samples/client/echo_api/php-nextgen-streaming/src/Model/Query.php index ec0b3feb996f..4ba24e390a18 100644 --- a/samples/client/echo_api/php-nextgen-streaming/src/Model/Query.php +++ b/samples/client/echo_api/php-nextgen-streaming/src/Model/Query.php @@ -47,47 +47,47 @@ class Query implements ModelInterface, ArrayAccess, JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'Query'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'id' => 'int', 'outcomes' => 'string[]' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'id' => 'int64', 'outcomes' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'id' => false, 'outcomes' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -271,14 +271,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/echo_api/php-nextgen-streaming/src/Model/Tag.php b/samples/client/echo_api/php-nextgen-streaming/src/Model/Tag.php index cbbcc36c6552..92f435911090 100644 --- a/samples/client/echo_api/php-nextgen-streaming/src/Model/Tag.php +++ b/samples/client/echo_api/php-nextgen-streaming/src/Model/Tag.php @@ -47,47 +47,47 @@ class Tag implements ModelInterface, ArrayAccess, JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'Tag'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'id' => 'int', 'name' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'id' => 'int64', 'name' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'id' => false, 'name' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -254,14 +254,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/echo_api/php-nextgen-streaming/src/Model/TestFormObjectMultipartRequestMarker.php b/samples/client/echo_api/php-nextgen-streaming/src/Model/TestFormObjectMultipartRequestMarker.php index b65d8c251083..e11c2088ecae 100644 --- a/samples/client/echo_api/php-nextgen-streaming/src/Model/TestFormObjectMultipartRequestMarker.php +++ b/samples/client/echo_api/php-nextgen-streaming/src/Model/TestFormObjectMultipartRequestMarker.php @@ -47,44 +47,44 @@ class TestFormObjectMultipartRequestMarker implements ModelInterface, ArrayAcces public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'test_form_object_multipart_request_marker'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'name' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'name' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'name' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -247,14 +247,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/echo_api/php-nextgen-streaming/src/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.php b/samples/client/echo_api/php-nextgen-streaming/src/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.php index 63979f74f8e3..838fc12b264b 100644 --- a/samples/client/echo_api/php-nextgen-streaming/src/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.php +++ b/samples/client/echo_api/php-nextgen-streaming/src/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.php @@ -47,17 +47,17 @@ class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter impleme public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'test_query_style_deepObject_explode_true_object_allOf_query_object_parameter'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'size' => 'string', 'color' => 'string', @@ -66,10 +66,10 @@ class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter impleme ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'size' => null, 'color' => null, @@ -78,10 +78,10 @@ class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter impleme ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'size' => false, 'color' => false, @@ -90,10 +90,10 @@ class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter impleme ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -268,14 +268,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/echo_api/php-nextgen-streaming/src/Model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.php b/samples/client/echo_api/php-nextgen-streaming/src/Model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.php index 32ad0d5c8a4b..9dedd7c3c6a2 100644 --- a/samples/client/echo_api/php-nextgen-streaming/src/Model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.php +++ b/samples/client/echo_api/php-nextgen-streaming/src/Model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.php @@ -47,44 +47,44 @@ class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter implements Mo public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'test_query_style_form_explode_true_array_string_query_object_parameter'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'values' => 'string[]' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'values' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'values' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -247,14 +247,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/echo_api/php-nextgen/src/Configuration.php b/samples/client/echo_api/php-nextgen/src/Configuration.php index 95180350b564..d35f646f267b 100644 --- a/samples/client/echo_api/php-nextgen/src/Configuration.php +++ b/samples/client/echo_api/php-nextgen/src/Configuration.php @@ -475,13 +475,13 @@ public function getHostSettings(): array } /** - * Returns URL based on host settings, index and variables - * - * @param array $hostSettings array of host settings, generated from getHostSettings() or equivalent from the API clients - * @param int $hostIndex index of the host settings - * @param array|null $variables hash of variable and the corresponding value (optional) - * @return string URL based on host settings - */ + * Returns URL based on host settings, index and variables + * + * @param array $hostSettings array of host settings, generated from getHostSettings() or equivalent from the API clients + * @param int $hostIndex index of the host settings + * @param array|null $variables hash of variable and the corresponding value (optional) + * @return string URL based on host settings + */ public static function getHostString(array $hostSettings, int $hostIndex, ?array $variables = null): string { if (null === $variables) { diff --git a/samples/client/echo_api/php-nextgen/src/HeaderSelector.php b/samples/client/echo_api/php-nextgen/src/HeaderSelector.php index 8ca8a78ca83f..6c6beb7ac3f1 100644 --- a/samples/client/echo_api/php-nextgen/src/HeaderSelector.php +++ b/samples/client/echo_api/php-nextgen/src/HeaderSelector.php @@ -95,13 +95,13 @@ private function selectAcceptHeader(array $accept): ?string } /** - * Create an Accept header string from the given "Accept" headers array, recalculating all weights - * - * @param string[] $accept Array of Accept Headers - * @param string[] $headersWithJson Array of Accept Headers of type "json" - * - * @return string "Accept" Header (e.g. "application/json, text/html; q=0.9") - */ + * Create an Accept header string from the given "Accept" headers array, recalculating all weights + * + * @param string[] $accept Array of Accept Headers + * @param string[] $headersWithJson Array of Accept Headers of type "json" + * + * @return string "Accept" Header (e.g. "application/json, text/html; q=0.9") + */ private function getAcceptHeaderWithAdjustedWeight(array $accept, array $headersWithJson): string { $processedHeaders = [ diff --git a/samples/client/echo_api/php-nextgen/src/Model/Bird.php b/samples/client/echo_api/php-nextgen/src/Model/Bird.php index 7f11e0bcc88b..84ce780b7690 100644 --- a/samples/client/echo_api/php-nextgen/src/Model/Bird.php +++ b/samples/client/echo_api/php-nextgen/src/Model/Bird.php @@ -47,47 +47,47 @@ class Bird implements ModelInterface, ArrayAccess, JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'Bird'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'size' => 'string', 'color' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'size' => null, 'color' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'size' => false, 'color' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -254,14 +254,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/echo_api/php-nextgen/src/Model/Category.php b/samples/client/echo_api/php-nextgen/src/Model/Category.php index 3f1130a9e024..a631027f7f49 100644 --- a/samples/client/echo_api/php-nextgen/src/Model/Category.php +++ b/samples/client/echo_api/php-nextgen/src/Model/Category.php @@ -47,47 +47,47 @@ class Category implements ModelInterface, ArrayAccess, JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'Category'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'id' => 'int', 'name' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'id' => 'int64', 'name' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'id' => false, 'name' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -254,14 +254,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/echo_api/php-nextgen/src/Model/DataQuery.php b/samples/client/echo_api/php-nextgen/src/Model/DataQuery.php index 261e408c904b..2190c51534fa 100644 --- a/samples/client/echo_api/php-nextgen/src/Model/DataQuery.php +++ b/samples/client/echo_api/php-nextgen/src/Model/DataQuery.php @@ -41,17 +41,17 @@ class DataQuery extends Query public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'DataQuery'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'suffix' => 'string', 'text' => 'string', @@ -59,10 +59,10 @@ class DataQuery extends Query ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'suffix' => null, 'text' => null, @@ -70,10 +70,10 @@ class DataQuery extends Query ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'suffix' => false, 'text' => false, @@ -81,10 +81,10 @@ class DataQuery extends Query ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -251,14 +251,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/echo_api/php-nextgen/src/Model/DefaultValue.php b/samples/client/echo_api/php-nextgen/src/Model/DefaultValue.php index 5d349d4619b4..b0401a074a96 100644 --- a/samples/client/echo_api/php-nextgen/src/Model/DefaultValue.php +++ b/samples/client/echo_api/php-nextgen/src/Model/DefaultValue.php @@ -48,17 +48,17 @@ class DefaultValue implements ModelInterface, ArrayAccess, JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'DefaultValue'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'array_string_enum_ref_default' => '\OpenAPI\Client\Model\StringEnumRef[]', 'array_string_enum_default' => 'string[]', @@ -71,10 +71,10 @@ class DefaultValue implements ModelInterface, ArrayAccess, JsonSerializable ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'array_string_enum_ref_default' => null, 'array_string_enum_default' => null, @@ -87,10 +87,10 @@ class DefaultValue implements ModelInterface, ArrayAccess, JsonSerializable ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'array_string_enum_ref_default' => false, 'array_string_enum_default' => false, @@ -103,10 +103,10 @@ class DefaultValue implements ModelInterface, ArrayAccess, JsonSerializable ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -314,14 +314,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/echo_api/php-nextgen/src/Model/NumberPropertiesOnly.php b/samples/client/echo_api/php-nextgen/src/Model/NumberPropertiesOnly.php index 73cbda58cae4..3035fcc6339d 100644 --- a/samples/client/echo_api/php-nextgen/src/Model/NumberPropertiesOnly.php +++ b/samples/client/echo_api/php-nextgen/src/Model/NumberPropertiesOnly.php @@ -47,17 +47,17 @@ class NumberPropertiesOnly implements ModelInterface, ArrayAccess, JsonSerializa public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'NumberPropertiesOnly'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'number' => 'float', 'float' => 'float', @@ -65,10 +65,10 @@ class NumberPropertiesOnly implements ModelInterface, ArrayAccess, JsonSerializa ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'number' => null, 'float' => 'float', @@ -76,10 +76,10 @@ class NumberPropertiesOnly implements ModelInterface, ArrayAccess, JsonSerializa ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'number' => false, 'float' => false, @@ -87,10 +87,10 @@ class NumberPropertiesOnly implements ModelInterface, ArrayAccess, JsonSerializa ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -261,14 +261,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/echo_api/php-nextgen/src/Model/Pet.php b/samples/client/echo_api/php-nextgen/src/Model/Pet.php index 2ee69b1b2a0a..b44680e762b9 100644 --- a/samples/client/echo_api/php-nextgen/src/Model/Pet.php +++ b/samples/client/echo_api/php-nextgen/src/Model/Pet.php @@ -47,17 +47,17 @@ class Pet implements ModelInterface, ArrayAccess, JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'Pet'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'id' => 'int', 'name' => 'string', @@ -68,10 +68,10 @@ class Pet implements ModelInterface, ArrayAccess, JsonSerializable ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'id' => 'int64', 'name' => null, @@ -82,10 +82,10 @@ class Pet implements ModelInterface, ArrayAccess, JsonSerializable ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'id' => false, 'name' => false, @@ -96,10 +96,10 @@ class Pet implements ModelInterface, ArrayAccess, JsonSerializable ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -299,14 +299,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/echo_api/php-nextgen/src/Model/Query.php b/samples/client/echo_api/php-nextgen/src/Model/Query.php index ec0b3feb996f..4ba24e390a18 100644 --- a/samples/client/echo_api/php-nextgen/src/Model/Query.php +++ b/samples/client/echo_api/php-nextgen/src/Model/Query.php @@ -47,47 +47,47 @@ class Query implements ModelInterface, ArrayAccess, JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'Query'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'id' => 'int', 'outcomes' => 'string[]' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'id' => 'int64', 'outcomes' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'id' => false, 'outcomes' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -271,14 +271,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/echo_api/php-nextgen/src/Model/Tag.php b/samples/client/echo_api/php-nextgen/src/Model/Tag.php index cbbcc36c6552..92f435911090 100644 --- a/samples/client/echo_api/php-nextgen/src/Model/Tag.php +++ b/samples/client/echo_api/php-nextgen/src/Model/Tag.php @@ -47,47 +47,47 @@ class Tag implements ModelInterface, ArrayAccess, JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'Tag'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'id' => 'int', 'name' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'id' => 'int64', 'name' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'id' => false, 'name' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -254,14 +254,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/echo_api/php-nextgen/src/Model/TestFormObjectMultipartRequestMarker.php b/samples/client/echo_api/php-nextgen/src/Model/TestFormObjectMultipartRequestMarker.php index b65d8c251083..e11c2088ecae 100644 --- a/samples/client/echo_api/php-nextgen/src/Model/TestFormObjectMultipartRequestMarker.php +++ b/samples/client/echo_api/php-nextgen/src/Model/TestFormObjectMultipartRequestMarker.php @@ -47,44 +47,44 @@ class TestFormObjectMultipartRequestMarker implements ModelInterface, ArrayAcces public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'test_form_object_multipart_request_marker'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'name' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'name' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'name' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -247,14 +247,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/echo_api/php-nextgen/src/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.php b/samples/client/echo_api/php-nextgen/src/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.php index 63979f74f8e3..838fc12b264b 100644 --- a/samples/client/echo_api/php-nextgen/src/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.php +++ b/samples/client/echo_api/php-nextgen/src/Model/TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter.php @@ -47,17 +47,17 @@ class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter impleme public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'test_query_style_deepObject_explode_true_object_allOf_query_object_parameter'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'size' => 'string', 'color' => 'string', @@ -66,10 +66,10 @@ class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter impleme ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'size' => null, 'color' => null, @@ -78,10 +78,10 @@ class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter impleme ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'size' => false, 'color' => false, @@ -90,10 +90,10 @@ class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter impleme ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -268,14 +268,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/echo_api/php-nextgen/src/Model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.php b/samples/client/echo_api/php-nextgen/src/Model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.php index 32ad0d5c8a4b..9dedd7c3c6a2 100644 --- a/samples/client/echo_api/php-nextgen/src/Model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.php +++ b/samples/client/echo_api/php-nextgen/src/Model/TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter.php @@ -47,44 +47,44 @@ class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter implements Mo public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'test_query_style_form_explode_true_array_string_query_object_parameter'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'values' => 'string[]' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'values' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'values' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -247,14 +247,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/PetApi.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/PetApi.php index 1b282da8599a..7be210c45dfb 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/PetApi.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Api/PetApi.php @@ -375,19 +375,19 @@ function ($exception) { /** * Create request for operation 'addPet' * - * This operation contains host(s) defined in the OpenAPI spec. Use 'hostIndex' to select the host. - * if needed, use the 'variables' parameter to pass variables to the host. + * This operation contains host(s) defined in the OpenAPI spec. Use 'hostIndex' to select the host. + * if needed, use the 'variables' parameter to pass variables to the host. * URL: http://localhost/v2 * URL: http://petstore.swagger.io/v2 * URL: http://path-server-test.petstore.local/v2 * URL: http://{server}.swagger.io:{port}/v2 * Variables: - * - server: target server + * - server: target server * Allowed values: * - petstore * - qa-petstore * - dev-petstore - * - port: No description provided + * - port: No description provided * Allowed values: * - 80 * - 8080 @@ -1882,19 +1882,19 @@ function ($exception) { /** * Create request for operation 'updatePet' * - * This operation contains host(s) defined in the OpenAPI spec. Use 'hostIndex' to select the host. - * if needed, use the 'variables' parameter to pass variables to the host. + * This operation contains host(s) defined in the OpenAPI spec. Use 'hostIndex' to select the host. + * if needed, use the 'variables' parameter to pass variables to the host. * URL: http://localhost/v2 * URL: http://petstore.swagger.io/v2 * URL: http://path-server-test.petstore.local/v2 * URL: http://{server}.swagger.io:{port}/v2 * Variables: - * - server: target server + * - server: target server * Allowed values: * - petstore * - qa-petstore * - dev-petstore - * - port: No description provided + * - port: No description provided * Allowed values: * - 80 * - 8080 diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Configuration.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Configuration.php index 8373eb67646e..87c6bb923f06 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Configuration.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Configuration.php @@ -511,13 +511,13 @@ public function getHostSettings(): array } /** - * Returns URL based on host settings, index and variables - * - * @param array $hostSettings array of host settings, generated from getHostSettings() or equivalent from the API clients - * @param int $hostIndex index of the host settings - * @param array|null $variables hash of variable and the corresponding value (optional) - * @return string URL based on host settings - */ + * Returns URL based on host settings, index and variables + * + * @param array $hostSettings array of host settings, generated from getHostSettings() or equivalent from the API clients + * @param int $hostIndex index of the host settings + * @param array|null $variables hash of variable and the corresponding value (optional) + * @return string URL based on host settings + */ public static function getHostString(array $hostSettings, int $hostIndex, ?array $variables = null): string { if (null === $variables) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/HeaderSelector.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/HeaderSelector.php index 67edf8cc13f0..bf9b0ac03c82 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/HeaderSelector.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/HeaderSelector.php @@ -94,13 +94,13 @@ private function selectAcceptHeader(array $accept): ?string } /** - * Create an Accept header string from the given "Accept" headers array, recalculating all weights - * - * @param string[] $accept Array of Accept Headers - * @param string[] $headersWithJson Array of Accept Headers of type "json" - * - * @return string "Accept" Header (e.g. "application/json, text/html; q=0.9") - */ + * Create an Accept header string from the given "Accept" headers array, recalculating all weights + * + * @param string[] $accept Array of Accept Headers + * @param string[] $headersWithJson Array of Accept Headers of type "json" + * + * @return string "Accept" Header (e.g. "application/json, text/html; q=0.9") + */ private function getAcceptHeaderWithAdjustedWeight(array $accept, array $headersWithJson): string { $processedHeaders = [ diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/AdditionalPropertiesClass.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/AdditionalPropertiesClass.php index 28ea43014add..3a03c4f013a4 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/AdditionalPropertiesClass.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/AdditionalPropertiesClass.php @@ -46,47 +46,47 @@ class AdditionalPropertiesClass implements ModelInterface, ArrayAccess, JsonSeri public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'AdditionalPropertiesClass'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'map_property' => 'array', 'map_of_map_property' => 'array>' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'map_property' => null, 'map_of_map_property' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'map_property' => false, 'map_of_map_property' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -253,14 +253,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/AllOfWithSingleRef.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/AllOfWithSingleRef.php index 46ec21861343..2b8b73082178 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/AllOfWithSingleRef.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/AllOfWithSingleRef.php @@ -46,47 +46,47 @@ class AllOfWithSingleRef implements ModelInterface, ArrayAccess, JsonSerializabl public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'AllOfWithSingleRef'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'username' => 'string', 'single_ref_type' => '\OpenAPI\Client\Model\SingleRefType' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'username' => null, 'single_ref_type' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'username' => false, 'single_ref_type' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -253,14 +253,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Animal.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Animal.php index cb176f0eb9d2..1594daf2c68e 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Animal.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Animal.php @@ -46,47 +46,47 @@ class Animal implements ModelInterface, ArrayAccess, JsonSerializable public const DISCRIMINATOR = 'class_name'; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'Animal'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'class_name' => 'string', 'color' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'class_name' => null, 'color' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'class_name' => false, 'color' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -258,14 +258,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ApiResponse.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ApiResponse.php index 009f6d421453..0269afbef612 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ApiResponse.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ApiResponse.php @@ -46,17 +46,17 @@ class ApiResponse implements ModelInterface, ArrayAccess, JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'ApiResponse'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'code' => 'int', 'type' => 'string', @@ -64,10 +64,10 @@ class ApiResponse implements ModelInterface, ArrayAccess, JsonSerializable ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'code' => 'int32', 'type' => null, @@ -75,10 +75,10 @@ class ApiResponse implements ModelInterface, ArrayAccess, JsonSerializable ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'code' => false, 'type' => false, @@ -86,10 +86,10 @@ class ApiResponse implements ModelInterface, ArrayAccess, JsonSerializable ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -260,14 +260,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ArrayOfArrayOfNumberOnly.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ArrayOfArrayOfNumberOnly.php index e7edd85b89e3..e1a89f7c4acc 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ArrayOfArrayOfNumberOnly.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ArrayOfArrayOfNumberOnly.php @@ -46,44 +46,44 @@ class ArrayOfArrayOfNumberOnly implements ModelInterface, ArrayAccess, JsonSeria public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'ArrayOfArrayOfNumberOnly'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'array_array_number' => 'float[][]' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'array_array_number' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'array_array_number' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -246,14 +246,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ArrayOfNumberOnly.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ArrayOfNumberOnly.php index 09ff7cb3d8d7..082f5c2a67eb 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ArrayOfNumberOnly.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ArrayOfNumberOnly.php @@ -46,44 +46,44 @@ class ArrayOfNumberOnly implements ModelInterface, ArrayAccess, JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'ArrayOfNumberOnly'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'array_number' => 'float[]' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'array_number' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'array_number' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -246,14 +246,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ArrayTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ArrayTest.php index 80d26e20fd82..4472bc4cd2a0 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ArrayTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ArrayTest.php @@ -46,17 +46,17 @@ class ArrayTest implements ModelInterface, ArrayAccess, JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'ArrayTest'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'array_of_string' => 'string[]', 'array_array_of_integer' => 'int[][]', @@ -64,10 +64,10 @@ class ArrayTest implements ModelInterface, ArrayAccess, JsonSerializable ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'array_of_string' => null, 'array_array_of_integer' => 'int64', @@ -75,10 +75,10 @@ class ArrayTest implements ModelInterface, ArrayAccess, JsonSerializable ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'array_of_string' => false, 'array_array_of_integer' => false, @@ -86,10 +86,10 @@ class ArrayTest implements ModelInterface, ArrayAccess, JsonSerializable ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -260,14 +260,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Capitalization.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Capitalization.php index 36c725a29dd4..1b15e9d8d3f0 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Capitalization.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Capitalization.php @@ -46,17 +46,17 @@ class Capitalization implements ModelInterface, ArrayAccess, JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'Capitalization'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'small_camel' => 'string', 'capital_camel' => 'string', @@ -67,10 +67,10 @@ class Capitalization implements ModelInterface, ArrayAccess, JsonSerializable ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'small_camel' => null, 'capital_camel' => null, @@ -81,10 +81,10 @@ class Capitalization implements ModelInterface, ArrayAccess, JsonSerializable ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'small_camel' => false, 'capital_camel' => false, @@ -95,10 +95,10 @@ class Capitalization implements ModelInterface, ArrayAccess, JsonSerializable ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -281,14 +281,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Cat.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Cat.php index 6f40684a086e..e82412bf37c4 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Cat.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Cat.php @@ -40,44 +40,44 @@ class Cat extends Animal public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'Cat'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'declawed' => 'bool' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'declawed' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'declawed' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -236,14 +236,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Category.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Category.php index cb3b0c81fe73..b56b14c5e029 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Category.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Category.php @@ -46,47 +46,47 @@ class Category implements ModelInterface, ArrayAccess, JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'Category'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'id' => 'int', 'name' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'id' => 'int64', 'name' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'id' => false, 'name' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -253,14 +253,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ChildWithNullable.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ChildWithNullable.php index d5dd87674b93..f3a2870fe25e 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ChildWithNullable.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ChildWithNullable.php @@ -40,44 +40,44 @@ class ChildWithNullable extends ParentWithNullable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'ChildWithNullable'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'other_property' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'other_property' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'other_property' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -236,14 +236,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ClassModel.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ClassModel.php index 7573069bfa43..a613ad50e59c 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ClassModel.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ClassModel.php @@ -47,44 +47,44 @@ class ClassModel implements ModelInterface, ArrayAccess, JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'ClassModel'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ '_class' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ '_class' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ '_class' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -247,14 +247,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Client.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Client.php index 88fc2e758170..6f8eb99068c5 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Client.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Client.php @@ -46,44 +46,44 @@ class Client implements ModelInterface, ArrayAccess, JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'Client'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'client' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'client' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'client' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -246,14 +246,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/DeprecatedObject.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/DeprecatedObject.php index 674d3138bc2b..d004ed660b12 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/DeprecatedObject.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/DeprecatedObject.php @@ -46,44 +46,44 @@ class DeprecatedObject implements ModelInterface, ArrayAccess, JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'DeprecatedObject'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'name' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'name' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'name' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -246,14 +246,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/DiscriminatorBase.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/DiscriminatorBase.php index bcd5890714a3..c26e1a6d236f 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/DiscriminatorBase.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/DiscriminatorBase.php @@ -46,44 +46,44 @@ class DiscriminatorBase implements ModelInterface, ArrayAccess, JsonSerializable public const DISCRIMINATOR = 'type'; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'DiscriminatorBase'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'type' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'type' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'type' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -250,14 +250,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/DiscriminatorChild.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/DiscriminatorChild.php index 385d408d70d8..ad6cc1b0d68d 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/DiscriminatorChild.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/DiscriminatorChild.php @@ -40,44 +40,44 @@ class DiscriminatorChild extends DiscriminatorBase public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'DiscriminatorChild'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'child_property' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'child_property' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'child_property' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -236,14 +236,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Dog.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Dog.php index d5ad555a8c0d..0474e42ad7c9 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Dog.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Dog.php @@ -40,44 +40,44 @@ class Dog extends Animal public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'Dog'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'breed' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'breed' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'breed' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -236,14 +236,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/EnumArrays.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/EnumArrays.php index 3c6e37fe37b9..fdc9d3965b8e 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/EnumArrays.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/EnumArrays.php @@ -46,47 +46,47 @@ class EnumArrays implements ModelInterface, ArrayAccess, JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'EnumArrays'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'just_symbol' => 'string', 'array_enum' => 'string[]' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'just_symbol' => null, 'array_enum' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'just_symbol' => false, 'array_enum' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -283,14 +283,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/EnumTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/EnumTest.php index 3b69d1493e38..35b3075382d8 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/EnumTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/EnumTest.php @@ -46,17 +46,17 @@ class EnumTest implements ModelInterface, ArrayAccess, JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'Enum_Test'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'enum_string' => 'string', 'enum_string_required' => 'string', @@ -69,10 +69,10 @@ class EnumTest implements ModelInterface, ArrayAccess, JsonSerializable ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'enum_string' => null, 'enum_string_required' => null, @@ -85,10 +85,10 @@ class EnumTest implements ModelInterface, ArrayAccess, JsonSerializable ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'enum_string' => false, 'enum_string_required' => false, @@ -101,10 +101,10 @@ class EnumTest implements ModelInterface, ArrayAccess, JsonSerializable ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -359,14 +359,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/EnumWithNameAndDescription.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/EnumWithNameAndDescription.php index d5f686338af2..c46e952f0a67 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/EnumWithNameAndDescription.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/EnumWithNameAndDescription.php @@ -37,18 +37,18 @@ enum EnumWithNameAndDescription: int { /** - * The word one - */ + * The word one + */ case ONE = 1; /** - * The digit two - */ + * The digit two + */ case NUMBER_2 = 2; /** - * The digit three prefixed by a space - */ + * The digit three prefixed by a space + */ case _3 = 3; case NUMBER_4 = 4; diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Error.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Error.php index ecd2b2894ba2..92f5d11832eb 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Error.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Error.php @@ -47,47 +47,47 @@ class Error implements ModelInterface, ArrayAccess, JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'Error'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'error' => 'string', 'errors' => 'string[]' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'error' => null, 'errors' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'error' => false, 'errors' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -254,14 +254,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ErrorResponse.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ErrorResponse.php index 141cb9597f41..3c8e2c1ed18c 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ErrorResponse.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ErrorResponse.php @@ -46,47 +46,47 @@ class ErrorResponse implements ModelInterface, ArrayAccess, JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'ErrorResponse'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'response_code' => 'int', 'error' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'response_code' => null, 'error' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'response_code' => false, 'error' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -253,14 +253,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/FakeBigDecimalMap200Response.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/FakeBigDecimalMap200Response.php index 03c1340e31cb..ac03bbded557 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/FakeBigDecimalMap200Response.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/FakeBigDecimalMap200Response.php @@ -46,47 +46,47 @@ class FakeBigDecimalMap200Response implements ModelInterface, ArrayAccess, JsonS public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'fakeBigDecimalMap_200_response'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'some_id' => 'float', 'some_map' => 'array' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'some_id' => null, 'some_map' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'some_id' => false, 'some_map' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -253,14 +253,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/File.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/File.php index d1417a75ba1c..869052e55c35 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/File.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/File.php @@ -47,44 +47,44 @@ class File implements ModelInterface, ArrayAccess, JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'File'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'source_uri' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'source_uri' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'source_uri' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -247,14 +247,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/FileSchemaTestClass.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/FileSchemaTestClass.php index 5267131ef6e6..2c9558337c53 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/FileSchemaTestClass.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/FileSchemaTestClass.php @@ -46,47 +46,47 @@ class FileSchemaTestClass implements ModelInterface, ArrayAccess, JsonSerializab public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'FileSchemaTestClass'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'file' => '\OpenAPI\Client\Model\File', 'files' => '\OpenAPI\Client\Model\File[]' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'file' => null, 'files' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'file' => false, 'files' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -253,14 +253,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Foo.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Foo.php index fc3558f2bfc9..4f72ab1d268f 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Foo.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Foo.php @@ -46,44 +46,44 @@ class Foo implements ModelInterface, ArrayAccess, JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'Foo'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'bar' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'bar' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'bar' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -246,14 +246,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/FooGetDefaultResponse.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/FooGetDefaultResponse.php index 12a192a43cca..d21f500c3b8e 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/FooGetDefaultResponse.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/FooGetDefaultResponse.php @@ -46,44 +46,44 @@ class FooGetDefaultResponse implements ModelInterface, ArrayAccess, JsonSerializ public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = '_foo_get_default_response'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'string' => '\OpenAPI\Client\Model\Foo' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'string' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'string' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -246,14 +246,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/FormatTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/FormatTest.php index 9f5bfdf120b9..b8931867e7d1 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/FormatTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/FormatTest.php @@ -46,17 +46,17 @@ class FormatTest implements ModelInterface, ArrayAccess, JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'format_test'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'integer' => 'int', 'int32' => 'int', @@ -78,10 +78,10 @@ class FormatTest implements ModelInterface, ArrayAccess, JsonSerializable ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'integer' => null, 'int32' => 'int32', @@ -103,10 +103,10 @@ class FormatTest implements ModelInterface, ArrayAccess, JsonSerializable ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'integer' => false, 'int32' => false, @@ -128,10 +128,10 @@ class FormatTest implements ModelInterface, ArrayAccess, JsonSerializable ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -358,14 +358,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/HasOnlyReadOnly.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/HasOnlyReadOnly.php index 0c6f936446f5..1a114165219c 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/HasOnlyReadOnly.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/HasOnlyReadOnly.php @@ -46,47 +46,47 @@ class HasOnlyReadOnly implements ModelInterface, ArrayAccess, JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'hasOnlyReadOnly'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'bar' => 'string', 'foo' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'bar' => null, 'foo' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'bar' => false, 'foo' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -253,14 +253,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/HealthCheckResult.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/HealthCheckResult.php index 58aecfacfe96..3b4f66ff42d4 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/HealthCheckResult.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/HealthCheckResult.php @@ -47,44 +47,44 @@ class HealthCheckResult implements ModelInterface, ArrayAccess, JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'HealthCheckResult'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'nullable_message' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'nullable_message' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'nullable_message' => true ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -247,14 +247,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/MapTest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/MapTest.php index 3d9fc74c29e3..c81d8551d4a3 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/MapTest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/MapTest.php @@ -46,17 +46,17 @@ class MapTest implements ModelInterface, ArrayAccess, JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'MapTest'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'map_map_of_string' => 'array>', 'map_of_enum_string' => 'array', @@ -65,10 +65,10 @@ class MapTest implements ModelInterface, ArrayAccess, JsonSerializable ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'map_map_of_string' => null, 'map_of_enum_string' => null, @@ -77,10 +77,10 @@ class MapTest implements ModelInterface, ArrayAccess, JsonSerializable ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'map_map_of_string' => false, 'map_of_enum_string' => false, @@ -89,10 +89,10 @@ class MapTest implements ModelInterface, ArrayAccess, JsonSerializable ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -282,14 +282,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/MixedPropertiesAndAdditionalPropertiesClass.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/MixedPropertiesAndAdditionalPropertiesClass.php index dabd385f73d6..65e89b5a0c1e 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/MixedPropertiesAndAdditionalPropertiesClass.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/MixedPropertiesAndAdditionalPropertiesClass.php @@ -46,17 +46,17 @@ class MixedPropertiesAndAdditionalPropertiesClass implements ModelInterface, Arr public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'MixedPropertiesAndAdditionalPropertiesClass'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'uuid' => 'string', 'date_time' => '\DateTime', @@ -64,10 +64,10 @@ class MixedPropertiesAndAdditionalPropertiesClass implements ModelInterface, Arr ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'uuid' => 'uuid', 'date_time' => 'date-time', @@ -75,10 +75,10 @@ class MixedPropertiesAndAdditionalPropertiesClass implements ModelInterface, Arr ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'uuid' => false, 'date_time' => false, @@ -86,10 +86,10 @@ class MixedPropertiesAndAdditionalPropertiesClass implements ModelInterface, Arr ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -260,14 +260,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Model200Response.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Model200Response.php index 0d204714d223..7f44811c561c 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Model200Response.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Model200Response.php @@ -47,47 +47,47 @@ class Model200Response implements ModelInterface, ArrayAccess, JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = '200_response'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'name' => 'int', 'class' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'name' => 'int32', 'class' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'name' => false, 'class' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -254,14 +254,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ModelList.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ModelList.php index 6855c1265646..ded948221324 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ModelList.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ModelList.php @@ -46,44 +46,44 @@ class ModelList implements ModelInterface, ArrayAccess, JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'List'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ '_123_list' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ '_123_list' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ '_123_list' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -246,14 +246,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ModelReturn.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ModelReturn.php index 774eb217542a..84d290889db0 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ModelReturn.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ModelReturn.php @@ -47,44 +47,44 @@ class ModelReturn implements ModelInterface, ArrayAccess, JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'Return'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'return' => 'int' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'return' => 'int32' ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'return' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -247,14 +247,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Name.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Name.php index 1621168273ef..00eee8150873 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Name.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Name.php @@ -47,17 +47,17 @@ class Name implements ModelInterface, ArrayAccess, JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'Name'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'name' => 'int', 'snake_case' => 'int', @@ -66,10 +66,10 @@ class Name implements ModelInterface, ArrayAccess, JsonSerializable ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'name' => 'int32', 'snake_case' => 'int32', @@ -78,10 +78,10 @@ class Name implements ModelInterface, ArrayAccess, JsonSerializable ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'name' => false, 'snake_case' => false, @@ -90,10 +90,10 @@ class Name implements ModelInterface, ArrayAccess, JsonSerializable ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -268,14 +268,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/NullableClass.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/NullableClass.php index 4c7c7121d34b..0deb1d5998a4 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/NullableClass.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/NullableClass.php @@ -46,17 +46,17 @@ class NullableClass implements ModelInterface, ArrayAccess, JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'NullableClass'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'integer_prop' => 'int', 'number_prop' => 'float', @@ -73,10 +73,10 @@ class NullableClass implements ModelInterface, ArrayAccess, JsonSerializable ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'integer_prop' => null, 'number_prop' => null, @@ -93,10 +93,10 @@ class NullableClass implements ModelInterface, ArrayAccess, JsonSerializable ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'integer_prop' => true, 'number_prop' => true, @@ -113,10 +113,10 @@ class NullableClass implements ModelInterface, ArrayAccess, JsonSerializable ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -323,14 +323,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/NumberOnly.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/NumberOnly.php index 843b69bf75af..d79185ead700 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/NumberOnly.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/NumberOnly.php @@ -46,44 +46,44 @@ class NumberOnly implements ModelInterface, ArrayAccess, JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'NumberOnly'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'just_number' => 'float' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'just_number' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'just_number' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -246,14 +246,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ObjectWithDeprecatedFields.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ObjectWithDeprecatedFields.php index 781040cd8de8..e89a1d25c032 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ObjectWithDeprecatedFields.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ObjectWithDeprecatedFields.php @@ -46,17 +46,17 @@ class ObjectWithDeprecatedFields implements ModelInterface, ArrayAccess, JsonSer public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'ObjectWithDeprecatedFields'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'uuid' => 'string', 'id' => 'float', @@ -65,10 +65,10 @@ class ObjectWithDeprecatedFields implements ModelInterface, ArrayAccess, JsonSer ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'uuid' => null, 'id' => null, @@ -77,10 +77,10 @@ class ObjectWithDeprecatedFields implements ModelInterface, ArrayAccess, JsonSer ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'uuid' => false, 'id' => false, @@ -89,10 +89,10 @@ class ObjectWithDeprecatedFields implements ModelInterface, ArrayAccess, JsonSer ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -267,14 +267,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Order.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Order.php index b667d14ce2f3..709cbace332b 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Order.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Order.php @@ -46,17 +46,17 @@ class Order implements ModelInterface, ArrayAccess, JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'Order'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'id' => 'int', 'pet_id' => 'int', @@ -67,10 +67,10 @@ class Order implements ModelInterface, ArrayAccess, JsonSerializable ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'id' => 'int64', 'pet_id' => 'int64', @@ -81,10 +81,10 @@ class Order implements ModelInterface, ArrayAccess, JsonSerializable ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'id' => false, 'pet_id' => false, @@ -95,10 +95,10 @@ class Order implements ModelInterface, ArrayAccess, JsonSerializable ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -298,14 +298,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/OuterComposite.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/OuterComposite.php index 171f6e99e7bd..0d24ecb218db 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/OuterComposite.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/OuterComposite.php @@ -46,17 +46,17 @@ class OuterComposite implements ModelInterface, ArrayAccess, JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'OuterComposite'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'my_number' => 'float', 'my_string' => 'string', @@ -64,10 +64,10 @@ class OuterComposite implements ModelInterface, ArrayAccess, JsonSerializable ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'my_number' => null, 'my_string' => null, @@ -75,10 +75,10 @@ class OuterComposite implements ModelInterface, ArrayAccess, JsonSerializable ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'my_number' => false, 'my_string' => false, @@ -86,10 +86,10 @@ class OuterComposite implements ModelInterface, ArrayAccess, JsonSerializable ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -260,14 +260,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/OuterObjectWithEnumProperty.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/OuterObjectWithEnumProperty.php index 96cc9281e369..03c25bec847f 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/OuterObjectWithEnumProperty.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/OuterObjectWithEnumProperty.php @@ -46,44 +46,44 @@ class OuterObjectWithEnumProperty implements ModelInterface, ArrayAccess, JsonSe public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'OuterObjectWithEnumProperty'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'value' => '\OpenAPI\Client\Model\OuterEnumInteger' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'value' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'value' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -246,14 +246,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ParentWithNullable.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ParentWithNullable.php index 4a29df396263..082107922cf1 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ParentWithNullable.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ParentWithNullable.php @@ -46,47 +46,47 @@ class ParentWithNullable implements ModelInterface, ArrayAccess, JsonSerializabl public const DISCRIMINATOR = 'type'; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'ParentWithNullable'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'type' => 'string', 'nullable_property' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'type' => null, 'nullable_property' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'type' => false, 'nullable_property' => true ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -269,14 +269,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Pet.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Pet.php index e4b444e17b1a..e71dc1a373c8 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Pet.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Pet.php @@ -46,17 +46,17 @@ class Pet implements ModelInterface, ArrayAccess, JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'Pet'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'id' => 'int', 'category' => '\OpenAPI\Client\Model\Category', @@ -67,10 +67,10 @@ class Pet implements ModelInterface, ArrayAccess, JsonSerializable ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'id' => 'int64', 'category' => null, @@ -81,10 +81,10 @@ class Pet implements ModelInterface, ArrayAccess, JsonSerializable ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'id' => false, 'category' => false, @@ -95,10 +95,10 @@ class Pet implements ModelInterface, ArrayAccess, JsonSerializable ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -298,14 +298,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ReadOnlyFirst.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ReadOnlyFirst.php index e157a0a6f045..d7cf9218ecca 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ReadOnlyFirst.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/ReadOnlyFirst.php @@ -46,47 +46,47 @@ class ReadOnlyFirst implements ModelInterface, ArrayAccess, JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'ReadOnlyFirst'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'bar' => 'string', 'baz' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'bar' => null, 'baz' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'bar' => false, 'baz' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -253,14 +253,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/SpecialModelName.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/SpecialModelName.php index ef42d6ac8504..439e50f469e6 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/SpecialModelName.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/SpecialModelName.php @@ -46,44 +46,44 @@ class SpecialModelName implements ModelInterface, ArrayAccess, JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = '_special_model.name_'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'special_property_name' => 'int' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'special_property_name' => 'int64' ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'special_property_name' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -246,14 +246,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Tag.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Tag.php index b2615bbd1d3c..93d174ca10d4 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Tag.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/Tag.php @@ -46,47 +46,47 @@ class Tag implements ModelInterface, ArrayAccess, JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'Tag'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'id' => 'int', 'name' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'id' => 'int64', 'name' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'id' => false, 'name' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -253,14 +253,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/TestInlineFreeformAdditionalPropertiesRequest.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/TestInlineFreeformAdditionalPropertiesRequest.php index ed16bf6b92e5..2cc11f1c7c57 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/TestInlineFreeformAdditionalPropertiesRequest.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/TestInlineFreeformAdditionalPropertiesRequest.php @@ -46,44 +46,44 @@ class TestInlineFreeformAdditionalPropertiesRequest implements ModelInterface, A public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'testInlineFreeformAdditionalProperties_request'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'some_property' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'some_property' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'some_property' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -246,14 +246,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/User.php b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/User.php index 1c415d98fcf0..c316d7cd5d45 100644 --- a/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/User.php +++ b/samples/client/petstore/php-nextgen/OpenAPIClient-php/src/Model/User.php @@ -46,17 +46,17 @@ class User implements ModelInterface, ArrayAccess, JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static string $openAPIModelName = 'User'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPITypes = [ 'id' => 'int', 'username' => 'string', @@ -69,10 +69,10 @@ class User implements ModelInterface, ArrayAccess, JsonSerializable ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var array + */ protected static array $openAPIFormats = [ 'id' => 'int64', 'username' => null, @@ -85,10 +85,10 @@ class User implements ModelInterface, ArrayAccess, JsonSerializable ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var array - */ + * Array of nullable properties. Used for (de)serialization + * + * @var array + */ protected static array $openAPINullables = [ 'id' => false, 'username' => false, @@ -101,10 +101,10 @@ class User implements ModelInterface, ArrayAccess, JsonSerializable ]; /** - * If a nullable field gets set to null, insert it here - * - * @var array - */ + * If a nullable field gets set to null, insert it here + * + * @var array + */ protected array $openAPINullablesSetToNull = []; /** @@ -295,14 +295,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, mixed $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/AdditionalPropertiesClass.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/AdditionalPropertiesClass.php index b3965611a09d..85bf739603a9 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/AdditionalPropertiesClass.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/AdditionalPropertiesClass.php @@ -45,49 +45,49 @@ class AdditionalPropertiesClass implements ModelInterface, ArrayAccess, \JsonSer public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'AdditionalPropertiesClass'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'map_property' => 'array', 'map_of_map_property' => 'array>' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'map_property' => null, 'map_of_map_property' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'map_property' => false, 'map_of_map_property' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -255,14 +255,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/AllOfWithSingleRef.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/AllOfWithSingleRef.php index 895621b18293..78ea9b5de03d 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/AllOfWithSingleRef.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/AllOfWithSingleRef.php @@ -45,49 +45,49 @@ class AllOfWithSingleRef implements ModelInterface, ArrayAccess, \JsonSerializab public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'AllOfWithSingleRef'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'username' => 'string', 'single_ref_type' => '\OpenAPI\Client\Model\SingleRefType' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'username' => null, 'single_ref_type' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'username' => false, 'single_ref_type' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -255,14 +255,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Animal.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Animal.php index 2f02550ed3af..24eaeb08cc65 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Animal.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Animal.php @@ -45,49 +45,49 @@ class Animal implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = 'class_name'; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'Animal'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'class_name' => 'string', 'color' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'class_name' => null, 'color' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'class_name' => false, 'color' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -258,14 +258,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ApiResponse.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ApiResponse.php index 640b351b0398..dfdaa230d9ae 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ApiResponse.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ApiResponse.php @@ -45,17 +45,17 @@ class ApiResponse implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'ApiResponse'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'code' => 'int', 'type' => 'string', @@ -63,12 +63,12 @@ class ApiResponse implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'code' => 'int32', 'type' => null, @@ -76,10 +76,10 @@ class ApiResponse implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'code' => false, 'type' => false, @@ -87,10 +87,10 @@ class ApiResponse implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -262,14 +262,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ArrayOfArrayOfNumberOnly.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ArrayOfArrayOfNumberOnly.php index db2e11dd24cd..c59fbab2e12f 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ArrayOfArrayOfNumberOnly.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ArrayOfArrayOfNumberOnly.php @@ -45,46 +45,46 @@ class ArrayOfArrayOfNumberOnly implements ModelInterface, ArrayAccess, \JsonSeri public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'ArrayOfArrayOfNumberOnly'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'array_array_number' => 'float[][]' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'array_array_number' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'array_array_number' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -248,14 +248,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ArrayOfNumberOnly.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ArrayOfNumberOnly.php index 5bb87a58058d..e6ef3e343306 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ArrayOfNumberOnly.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ArrayOfNumberOnly.php @@ -45,46 +45,46 @@ class ArrayOfNumberOnly implements ModelInterface, ArrayAccess, \JsonSerializabl public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'ArrayOfNumberOnly'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'array_number' => 'float[]' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'array_number' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'array_number' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -248,14 +248,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ArrayTest.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ArrayTest.php index 061e23c7957b..57049f516daa 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ArrayTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ArrayTest.php @@ -45,17 +45,17 @@ class ArrayTest implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'ArrayTest'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'array_of_string' => 'string[]', 'array_array_of_integer' => 'int[][]', @@ -63,12 +63,12 @@ class ArrayTest implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'array_of_string' => null, 'array_array_of_integer' => 'int64', @@ -76,10 +76,10 @@ class ArrayTest implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'array_of_string' => false, 'array_array_of_integer' => false, @@ -87,10 +87,10 @@ class ArrayTest implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -262,14 +262,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Capitalization.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Capitalization.php index aa027ea6168f..cb7845983ad1 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Capitalization.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Capitalization.php @@ -45,17 +45,17 @@ class Capitalization implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'Capitalization'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'small_camel' => 'string', 'capital_camel' => 'string', @@ -66,12 +66,12 @@ class Capitalization implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'small_camel' => null, 'capital_camel' => null, @@ -82,10 +82,10 @@ class Capitalization implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'small_camel' => false, 'capital_camel' => false, @@ -96,10 +96,10 @@ class Capitalization implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -283,14 +283,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Cat.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Cat.php index c4aeaa1944e3..b7c11f5533a9 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Cat.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Cat.php @@ -43,46 +43,46 @@ class Cat extends Animal public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'Cat'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'declawed' => 'bool' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'declawed' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'declawed' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -242,14 +242,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Category.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Category.php index d5058dd917fa..84bf262515f0 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Category.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Category.php @@ -45,49 +45,49 @@ class Category implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'Category'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'id' => 'int', 'name' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'id' => 'int64', 'name' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'id' => false, 'name' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -255,14 +255,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ClassModel.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ClassModel.php index 7309c60ee460..8bdf21e9e6c2 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ClassModel.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ClassModel.php @@ -46,46 +46,46 @@ class ClassModel implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'ClassModel'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ '_class' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ '_class' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ '_class' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -249,14 +249,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Client.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Client.php index f5b63eec381b..c626ba200b07 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Client.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Client.php @@ -45,46 +45,46 @@ class Client implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'Client'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'client' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'client' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'client' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -248,14 +248,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/DeprecatedObject.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/DeprecatedObject.php index 244613d46757..b9e628d559e5 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/DeprecatedObject.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/DeprecatedObject.php @@ -45,46 +45,46 @@ class DeprecatedObject implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'DeprecatedObject'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * 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 - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'name' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'name' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -248,14 +248,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Dog.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Dog.php index 2b43b1a1ec5d..6960201a01dc 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Dog.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Dog.php @@ -43,46 +43,46 @@ class Dog extends Animal public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'Dog'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'breed' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'breed' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'breed' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -242,14 +242,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/EnumArrays.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/EnumArrays.php index 75bae9f7c2eb..0d9295dd6341 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/EnumArrays.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/EnumArrays.php @@ -45,49 +45,49 @@ class EnumArrays implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'EnumArrays'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'just_symbol' => 'string', 'array_enum' => 'string[]' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'just_symbol' => null, 'array_enum' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'just_symbol' => false, 'array_enum' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -285,14 +285,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/EnumTest.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/EnumTest.php index 8963937b136f..b097750744d0 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/EnumTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/EnumTest.php @@ -45,17 +45,17 @@ class EnumTest implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'Enum_Test'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'enum_string' => 'string', 'enum_string_required' => 'string', @@ -68,12 +68,12 @@ class EnumTest implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'enum_string' => null, 'enum_string_required' => null, @@ -86,10 +86,10 @@ class EnumTest implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'enum_string' => false, 'enum_string_required' => false, @@ -102,10 +102,10 @@ class EnumTest implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -361,14 +361,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ErrorResponse.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ErrorResponse.php index bb8ea29bcd1a..8cb74d644982 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ErrorResponse.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ErrorResponse.php @@ -45,49 +45,49 @@ class ErrorResponse implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'ErrorResponse'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'response_code' => 'int', 'error' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'response_code' => null, 'error' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'response_code' => false, 'error' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -255,14 +255,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/FakeBigDecimalMap200Response.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/FakeBigDecimalMap200Response.php index 41eeab038c9d..6f59c8483941 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/FakeBigDecimalMap200Response.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/FakeBigDecimalMap200Response.php @@ -45,49 +45,49 @@ class FakeBigDecimalMap200Response implements ModelInterface, ArrayAccess, \Json public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'fakeBigDecimalMap_200_response'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'some_id' => 'float', 'some_map' => 'array' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'some_id' => null, 'some_map' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'some_id' => false, 'some_map' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -255,14 +255,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/File.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/File.php index dc05dda751ed..4bf984852b11 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/File.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/File.php @@ -46,46 +46,46 @@ class File implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'File'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'source_uri' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'source_uri' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'source_uri' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -249,14 +249,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/FileSchemaTestClass.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/FileSchemaTestClass.php index 8938c69883cb..e6e173dcaf77 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/FileSchemaTestClass.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/FileSchemaTestClass.php @@ -45,49 +45,49 @@ class FileSchemaTestClass implements ModelInterface, ArrayAccess, \JsonSerializa public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'FileSchemaTestClass'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'file' => '\OpenAPI\Client\Model\File', 'files' => '\OpenAPI\Client\Model\File[]' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'file' => null, 'files' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'file' => false, 'files' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -255,14 +255,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Foo.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Foo.php index 906ba54919cf..51603a559a25 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Foo.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Foo.php @@ -45,46 +45,46 @@ class Foo implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'Foo'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'bar' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'bar' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'bar' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -248,14 +248,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/FooGetDefaultResponse.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/FooGetDefaultResponse.php index ff8c853e58e4..8e39527820d8 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/FooGetDefaultResponse.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/FooGetDefaultResponse.php @@ -45,46 +45,46 @@ class FooGetDefaultResponse implements ModelInterface, ArrayAccess, \JsonSeriali public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = '_foo_get_default_response'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'string' => '\OpenAPI\Client\Model\Foo' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'string' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'string' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -248,14 +248,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/FormatTest.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/FormatTest.php index d3fbf4756458..b81e62e04a19 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/FormatTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/FormatTest.php @@ -45,17 +45,17 @@ class FormatTest implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'format_test'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'integer' => 'int', 'int32' => 'int', @@ -76,12 +76,12 @@ class FormatTest implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'integer' => null, 'int32' => 'int32', @@ -102,10 +102,10 @@ class FormatTest implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'integer' => false, 'int32' => false, @@ -126,10 +126,10 @@ class FormatTest implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -353,14 +353,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/HasOnlyReadOnly.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/HasOnlyReadOnly.php index 10793dcca07f..313ba02e4826 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/HasOnlyReadOnly.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/HasOnlyReadOnly.php @@ -45,49 +45,49 @@ class HasOnlyReadOnly implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'hasOnlyReadOnly'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'bar' => 'string', 'foo' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'bar' => null, 'foo' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'bar' => false, 'foo' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -255,14 +255,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/HealthCheckResult.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/HealthCheckResult.php index 22bfe53bc7a4..7748d28af3f2 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/HealthCheckResult.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/HealthCheckResult.php @@ -46,46 +46,46 @@ class HealthCheckResult implements ModelInterface, ArrayAccess, \JsonSerializabl public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'HealthCheckResult'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'nullable_message' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'nullable_message' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'nullable_message' => true ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -249,14 +249,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/MapTest.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/MapTest.php index 26d0b078cfb1..99f3490c74fa 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/MapTest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/MapTest.php @@ -45,17 +45,17 @@ class MapTest implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'MapTest'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'map_map_of_string' => 'array>', 'map_of_enum_string' => 'array', @@ -64,12 +64,12 @@ class MapTest implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'map_map_of_string' => null, 'map_of_enum_string' => null, @@ -78,10 +78,10 @@ class MapTest implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'map_map_of_string' => false, 'map_of_enum_string' => false, @@ -90,10 +90,10 @@ class MapTest implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -284,14 +284,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/MixedPropertiesAndAdditionalPropertiesClass.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/MixedPropertiesAndAdditionalPropertiesClass.php index 72980431fe67..1b6476a6dfe6 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/MixedPropertiesAndAdditionalPropertiesClass.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/MixedPropertiesAndAdditionalPropertiesClass.php @@ -45,17 +45,17 @@ class MixedPropertiesAndAdditionalPropertiesClass implements ModelInterface, Arr public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'MixedPropertiesAndAdditionalPropertiesClass'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'uuid' => 'string', 'date_time' => '\DateTime', @@ -63,12 +63,12 @@ class MixedPropertiesAndAdditionalPropertiesClass implements ModelInterface, Arr ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'uuid' => 'uuid', 'date_time' => 'date-time', @@ -76,10 +76,10 @@ class MixedPropertiesAndAdditionalPropertiesClass implements ModelInterface, Arr ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'uuid' => false, 'date_time' => false, @@ -87,10 +87,10 @@ class MixedPropertiesAndAdditionalPropertiesClass implements ModelInterface, Arr ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -262,14 +262,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Model200Response.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Model200Response.php index 00f804d691c8..4596bae2fcd6 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Model200Response.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Model200Response.php @@ -46,49 +46,49 @@ class Model200Response implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = '200_response'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'name' => 'int', 'class' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'name' => 'int32', 'class' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'name' => false, 'class' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -256,14 +256,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ModelList.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ModelList.php index 7afdb3f323c9..7f910f115d47 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ModelList.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ModelList.php @@ -45,46 +45,46 @@ class ModelList implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'List'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ '_123_list' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ '_123_list' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ '_123_list' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -248,14 +248,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ModelReturn.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ModelReturn.php index 66f7d7bcc335..3eebb24ec94c 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ModelReturn.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ModelReturn.php @@ -46,46 +46,46 @@ class ModelReturn implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'Return'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'return' => 'int' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'return' => 'int32' ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'return' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -249,14 +249,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Name.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Name.php index 578fe2380647..a4d397a6c91c 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Name.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Name.php @@ -46,17 +46,17 @@ class Name implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'Name'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'name' => 'int', 'snake_case' => 'int', @@ -65,12 +65,12 @@ class Name implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'name' => 'int32', 'snake_case' => 'int32', @@ -79,10 +79,10 @@ class Name implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'name' => false, 'snake_case' => false, @@ -91,10 +91,10 @@ class Name implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -270,14 +270,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/NullableClass.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/NullableClass.php index 050a969427fe..4669ab8b1125 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/NullableClass.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/NullableClass.php @@ -45,17 +45,17 @@ class NullableClass implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'NullableClass'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'integer_prop' => 'int', 'number_prop' => 'float', @@ -72,12 +72,12 @@ class NullableClass implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'integer_prop' => null, 'number_prop' => null, @@ -94,10 +94,10 @@ class NullableClass implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'integer_prop' => true, 'number_prop' => true, @@ -114,10 +114,10 @@ class NullableClass implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -325,14 +325,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/NumberOnly.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/NumberOnly.php index d8b0e5883cf1..eff39beb341f 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/NumberOnly.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/NumberOnly.php @@ -45,46 +45,46 @@ class NumberOnly implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'NumberOnly'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'just_number' => 'float' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'just_number' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'just_number' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -248,14 +248,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ObjectWithDeprecatedFields.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ObjectWithDeprecatedFields.php index 114075500269..af302cc7a1ca 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ObjectWithDeprecatedFields.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ObjectWithDeprecatedFields.php @@ -45,17 +45,17 @@ class ObjectWithDeprecatedFields implements ModelInterface, ArrayAccess, \JsonSe public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'ObjectWithDeprecatedFields'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'uuid' => 'string', 'id' => 'float', @@ -64,12 +64,12 @@ class ObjectWithDeprecatedFields implements ModelInterface, ArrayAccess, \JsonSe ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'uuid' => null, 'id' => null, @@ -78,10 +78,10 @@ class ObjectWithDeprecatedFields implements ModelInterface, ArrayAccess, \JsonSe ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'uuid' => false, 'id' => false, @@ -90,10 +90,10 @@ class ObjectWithDeprecatedFields implements ModelInterface, ArrayAccess, \JsonSe ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -269,14 +269,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Order.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Order.php index 716a6e19e65c..ff3a221ca2ca 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Order.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Order.php @@ -45,17 +45,17 @@ class Order implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'Order'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'id' => 'int', 'pet_id' => 'int', @@ -66,12 +66,12 @@ class Order implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'id' => 'int64', 'pet_id' => 'int64', @@ -82,10 +82,10 @@ class Order implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'id' => false, 'pet_id' => false, @@ -96,10 +96,10 @@ class Order implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -300,14 +300,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterComposite.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterComposite.php index 69c692450ab1..51450376647a 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterComposite.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterComposite.php @@ -45,17 +45,17 @@ class OuterComposite implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'OuterComposite'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'my_number' => 'float', 'my_string' => 'string', @@ -63,12 +63,12 @@ class OuterComposite implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'my_number' => null, 'my_string' => null, @@ -76,10 +76,10 @@ class OuterComposite implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'my_number' => false, 'my_string' => false, @@ -87,10 +87,10 @@ class OuterComposite implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -262,14 +262,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterObjectWithEnumProperty.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterObjectWithEnumProperty.php index ec09e1ce98d3..275dba19328d 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterObjectWithEnumProperty.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/OuterObjectWithEnumProperty.php @@ -45,46 +45,46 @@ class OuterObjectWithEnumProperty implements ModelInterface, ArrayAccess, \JsonS public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'OuterObjectWithEnumProperty'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'value' => '\OpenAPI\Client\Model\OuterEnumInteger' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'value' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'value' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -248,14 +248,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Pet.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Pet.php index ce6c5bc54269..fc05703ec644 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Pet.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Pet.php @@ -45,17 +45,17 @@ class Pet implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'Pet'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'id' => 'int', 'category' => '\OpenAPI\Client\Model\Category', @@ -66,12 +66,12 @@ class Pet implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'id' => 'int64', 'category' => null, @@ -82,10 +82,10 @@ class Pet implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'id' => false, 'category' => false, @@ -96,10 +96,10 @@ class Pet implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -300,14 +300,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/PetWithFile.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/PetWithFile.php index 20ebde3a5a08..9be246ad21f4 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/PetWithFile.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/PetWithFile.php @@ -45,17 +45,17 @@ class PetWithFile implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'PetWithFile'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'id' => 'int', 'category' => '\OpenAPI\Client\Model\Category', @@ -68,12 +68,12 @@ class PetWithFile implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'id' => 'int64', 'category' => null, @@ -86,10 +86,10 @@ class PetWithFile implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'id' => false, 'category' => false, @@ -102,10 +102,10 @@ class PetWithFile implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -314,14 +314,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/PropertyNameMapping.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/PropertyNameMapping.php index f73b82a5cabe..a5934e34646d 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/PropertyNameMapping.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/PropertyNameMapping.php @@ -45,17 +45,17 @@ class PropertyNameMapping implements ModelInterface, ArrayAccess, \JsonSerializa public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'PropertyNameMapping'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'http_debug_operation' => 'string', 'underscore_type' => 'string', @@ -64,12 +64,12 @@ class PropertyNameMapping implements ModelInterface, ArrayAccess, \JsonSerializa ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'http_debug_operation' => null, 'underscore_type' => null, @@ -78,10 +78,10 @@ class PropertyNameMapping implements ModelInterface, ArrayAccess, \JsonSerializa ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'http_debug_operation' => false, 'underscore_type' => false, @@ -90,10 +90,10 @@ class PropertyNameMapping implements ModelInterface, ArrayAccess, \JsonSerializa ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -269,14 +269,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ReadOnlyFirst.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ReadOnlyFirst.php index 9b8096d1b901..3169272641d6 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ReadOnlyFirst.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/ReadOnlyFirst.php @@ -45,49 +45,49 @@ class ReadOnlyFirst implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'ReadOnlyFirst'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'bar' => 'string', 'baz' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'bar' => null, 'baz' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'bar' => false, 'baz' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -255,14 +255,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/SpecialModelName.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/SpecialModelName.php index 0a1b36b9b863..380b2865a5a5 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/SpecialModelName.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/SpecialModelName.php @@ -45,46 +45,46 @@ class SpecialModelName implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = '_special_model.name_'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'special_property_name' => 'int' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'special_property_name' => 'int64' ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'special_property_name' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -248,14 +248,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Tag.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Tag.php index 08f0aee4f42c..04c6d8625443 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Tag.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/Tag.php @@ -45,49 +45,49 @@ class Tag implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'Tag'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'id' => 'int', 'name' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'id' => 'int64', 'name' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'id' => false, 'name' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -255,14 +255,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/TestInlineFreeformAdditionalPropertiesRequest.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/TestInlineFreeformAdditionalPropertiesRequest.php index 36c024daa904..5d36500e242c 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/TestInlineFreeformAdditionalPropertiesRequest.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/TestInlineFreeformAdditionalPropertiesRequest.php @@ -45,46 +45,46 @@ class TestInlineFreeformAdditionalPropertiesRequest implements ModelInterface, A public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'testInlineFreeformAdditionalProperties_request'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'some_property' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'some_property' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'some_property' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -248,14 +248,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/User.php b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/User.php index 0c2c38c1ae93..d65860a4a31b 100644 --- a/samples/client/petstore/php/OpenAPIClient-php/lib/Model/User.php +++ b/samples/client/petstore/php/OpenAPIClient-php/lib/Model/User.php @@ -45,17 +45,17 @@ class User implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'User'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'id' => 'int', 'username' => 'string', @@ -68,12 +68,12 @@ class User implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'id' => 'int64', 'username' => null, @@ -86,10 +86,10 @@ class User implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'id' => false, 'username' => false, @@ -102,10 +102,10 @@ class User implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -297,14 +297,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/psr-18/lib/Model/AdditionalPropertiesClass.php b/samples/client/petstore/php/psr-18/lib/Model/AdditionalPropertiesClass.php index b3965611a09d..85bf739603a9 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/AdditionalPropertiesClass.php +++ b/samples/client/petstore/php/psr-18/lib/Model/AdditionalPropertiesClass.php @@ -45,49 +45,49 @@ class AdditionalPropertiesClass implements ModelInterface, ArrayAccess, \JsonSer public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'AdditionalPropertiesClass'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'map_property' => 'array', 'map_of_map_property' => 'array>' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'map_property' => null, 'map_of_map_property' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'map_property' => false, 'map_of_map_property' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -255,14 +255,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/psr-18/lib/Model/AllOfWithSingleRef.php b/samples/client/petstore/php/psr-18/lib/Model/AllOfWithSingleRef.php index 895621b18293..78ea9b5de03d 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/AllOfWithSingleRef.php +++ b/samples/client/petstore/php/psr-18/lib/Model/AllOfWithSingleRef.php @@ -45,49 +45,49 @@ class AllOfWithSingleRef implements ModelInterface, ArrayAccess, \JsonSerializab public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'AllOfWithSingleRef'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'username' => 'string', 'single_ref_type' => '\OpenAPI\Client\Model\SingleRefType' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'username' => null, 'single_ref_type' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'username' => false, 'single_ref_type' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -255,14 +255,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/psr-18/lib/Model/Animal.php b/samples/client/petstore/php/psr-18/lib/Model/Animal.php index 2f02550ed3af..24eaeb08cc65 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/Animal.php +++ b/samples/client/petstore/php/psr-18/lib/Model/Animal.php @@ -45,49 +45,49 @@ class Animal implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = 'class_name'; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'Animal'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'class_name' => 'string', 'color' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'class_name' => null, 'color' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'class_name' => false, 'color' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -258,14 +258,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/psr-18/lib/Model/ApiResponse.php b/samples/client/petstore/php/psr-18/lib/Model/ApiResponse.php index 640b351b0398..dfdaa230d9ae 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/ApiResponse.php +++ b/samples/client/petstore/php/psr-18/lib/Model/ApiResponse.php @@ -45,17 +45,17 @@ class ApiResponse implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'ApiResponse'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'code' => 'int', 'type' => 'string', @@ -63,12 +63,12 @@ class ApiResponse implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'code' => 'int32', 'type' => null, @@ -76,10 +76,10 @@ class ApiResponse implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'code' => false, 'type' => false, @@ -87,10 +87,10 @@ class ApiResponse implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -262,14 +262,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/psr-18/lib/Model/ArrayOfArrayOfNumberOnly.php b/samples/client/petstore/php/psr-18/lib/Model/ArrayOfArrayOfNumberOnly.php index db2e11dd24cd..c59fbab2e12f 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/ArrayOfArrayOfNumberOnly.php +++ b/samples/client/petstore/php/psr-18/lib/Model/ArrayOfArrayOfNumberOnly.php @@ -45,46 +45,46 @@ class ArrayOfArrayOfNumberOnly implements ModelInterface, ArrayAccess, \JsonSeri public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'ArrayOfArrayOfNumberOnly'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'array_array_number' => 'float[][]' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'array_array_number' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'array_array_number' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -248,14 +248,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/psr-18/lib/Model/ArrayOfNumberOnly.php b/samples/client/petstore/php/psr-18/lib/Model/ArrayOfNumberOnly.php index 5bb87a58058d..e6ef3e343306 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/ArrayOfNumberOnly.php +++ b/samples/client/petstore/php/psr-18/lib/Model/ArrayOfNumberOnly.php @@ -45,46 +45,46 @@ class ArrayOfNumberOnly implements ModelInterface, ArrayAccess, \JsonSerializabl public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'ArrayOfNumberOnly'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'array_number' => 'float[]' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'array_number' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'array_number' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -248,14 +248,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/psr-18/lib/Model/ArrayTest.php b/samples/client/petstore/php/psr-18/lib/Model/ArrayTest.php index 061e23c7957b..57049f516daa 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/ArrayTest.php +++ b/samples/client/petstore/php/psr-18/lib/Model/ArrayTest.php @@ -45,17 +45,17 @@ class ArrayTest implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'ArrayTest'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'array_of_string' => 'string[]', 'array_array_of_integer' => 'int[][]', @@ -63,12 +63,12 @@ class ArrayTest implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'array_of_string' => null, 'array_array_of_integer' => 'int64', @@ -76,10 +76,10 @@ class ArrayTest implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'array_of_string' => false, 'array_array_of_integer' => false, @@ -87,10 +87,10 @@ class ArrayTest implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -262,14 +262,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/psr-18/lib/Model/Capitalization.php b/samples/client/petstore/php/psr-18/lib/Model/Capitalization.php index aa027ea6168f..cb7845983ad1 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/Capitalization.php +++ b/samples/client/petstore/php/psr-18/lib/Model/Capitalization.php @@ -45,17 +45,17 @@ class Capitalization implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'Capitalization'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'small_camel' => 'string', 'capital_camel' => 'string', @@ -66,12 +66,12 @@ class Capitalization implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'small_camel' => null, 'capital_camel' => null, @@ -82,10 +82,10 @@ class Capitalization implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'small_camel' => false, 'capital_camel' => false, @@ -96,10 +96,10 @@ class Capitalization implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -283,14 +283,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/psr-18/lib/Model/Cat.php b/samples/client/petstore/php/psr-18/lib/Model/Cat.php index c4aeaa1944e3..b7c11f5533a9 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/Cat.php +++ b/samples/client/petstore/php/psr-18/lib/Model/Cat.php @@ -43,46 +43,46 @@ class Cat extends Animal public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'Cat'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'declawed' => 'bool' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'declawed' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'declawed' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -242,14 +242,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/psr-18/lib/Model/Category.php b/samples/client/petstore/php/psr-18/lib/Model/Category.php index d5058dd917fa..84bf262515f0 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/Category.php +++ b/samples/client/petstore/php/psr-18/lib/Model/Category.php @@ -45,49 +45,49 @@ class Category implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'Category'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'id' => 'int', 'name' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'id' => 'int64', 'name' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'id' => false, 'name' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -255,14 +255,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/psr-18/lib/Model/ClassModel.php b/samples/client/petstore/php/psr-18/lib/Model/ClassModel.php index 7309c60ee460..8bdf21e9e6c2 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/ClassModel.php +++ b/samples/client/petstore/php/psr-18/lib/Model/ClassModel.php @@ -46,46 +46,46 @@ class ClassModel implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'ClassModel'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ '_class' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ '_class' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ '_class' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -249,14 +249,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/psr-18/lib/Model/Client.php b/samples/client/petstore/php/psr-18/lib/Model/Client.php index f5b63eec381b..c626ba200b07 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/Client.php +++ b/samples/client/petstore/php/psr-18/lib/Model/Client.php @@ -45,46 +45,46 @@ class Client implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'Client'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'client' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'client' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'client' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -248,14 +248,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/psr-18/lib/Model/DeprecatedObject.php b/samples/client/petstore/php/psr-18/lib/Model/DeprecatedObject.php index 244613d46757..b9e628d559e5 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/DeprecatedObject.php +++ b/samples/client/petstore/php/psr-18/lib/Model/DeprecatedObject.php @@ -45,46 +45,46 @@ class DeprecatedObject implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'DeprecatedObject'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * 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 - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'name' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'name' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -248,14 +248,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/psr-18/lib/Model/Dog.php b/samples/client/petstore/php/psr-18/lib/Model/Dog.php index 2b43b1a1ec5d..6960201a01dc 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/Dog.php +++ b/samples/client/petstore/php/psr-18/lib/Model/Dog.php @@ -43,46 +43,46 @@ class Dog extends Animal public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'Dog'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'breed' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'breed' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'breed' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -242,14 +242,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/psr-18/lib/Model/EnumArrays.php b/samples/client/petstore/php/psr-18/lib/Model/EnumArrays.php index 75bae9f7c2eb..0d9295dd6341 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/EnumArrays.php +++ b/samples/client/petstore/php/psr-18/lib/Model/EnumArrays.php @@ -45,49 +45,49 @@ class EnumArrays implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'EnumArrays'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'just_symbol' => 'string', 'array_enum' => 'string[]' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'just_symbol' => null, 'array_enum' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'just_symbol' => false, 'array_enum' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -285,14 +285,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/psr-18/lib/Model/EnumTest.php b/samples/client/petstore/php/psr-18/lib/Model/EnumTest.php index 8963937b136f..b097750744d0 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/EnumTest.php +++ b/samples/client/petstore/php/psr-18/lib/Model/EnumTest.php @@ -45,17 +45,17 @@ class EnumTest implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'Enum_Test'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'enum_string' => 'string', 'enum_string_required' => 'string', @@ -68,12 +68,12 @@ class EnumTest implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'enum_string' => null, 'enum_string_required' => null, @@ -86,10 +86,10 @@ class EnumTest implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'enum_string' => false, 'enum_string_required' => false, @@ -102,10 +102,10 @@ class EnumTest implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -361,14 +361,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/psr-18/lib/Model/ErrorResponse.php b/samples/client/petstore/php/psr-18/lib/Model/ErrorResponse.php index bb8ea29bcd1a..8cb74d644982 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/ErrorResponse.php +++ b/samples/client/petstore/php/psr-18/lib/Model/ErrorResponse.php @@ -45,49 +45,49 @@ class ErrorResponse implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'ErrorResponse'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'response_code' => 'int', 'error' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'response_code' => null, 'error' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'response_code' => false, 'error' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -255,14 +255,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/psr-18/lib/Model/FakeBigDecimalMap200Response.php b/samples/client/petstore/php/psr-18/lib/Model/FakeBigDecimalMap200Response.php index 41eeab038c9d..6f59c8483941 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/FakeBigDecimalMap200Response.php +++ b/samples/client/petstore/php/psr-18/lib/Model/FakeBigDecimalMap200Response.php @@ -45,49 +45,49 @@ class FakeBigDecimalMap200Response implements ModelInterface, ArrayAccess, \Json public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'fakeBigDecimalMap_200_response'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'some_id' => 'float', 'some_map' => 'array' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'some_id' => null, 'some_map' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'some_id' => false, 'some_map' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -255,14 +255,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/psr-18/lib/Model/File.php b/samples/client/petstore/php/psr-18/lib/Model/File.php index dc05dda751ed..4bf984852b11 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/File.php +++ b/samples/client/petstore/php/psr-18/lib/Model/File.php @@ -46,46 +46,46 @@ class File implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'File'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'source_uri' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'source_uri' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'source_uri' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -249,14 +249,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/psr-18/lib/Model/FileSchemaTestClass.php b/samples/client/petstore/php/psr-18/lib/Model/FileSchemaTestClass.php index 8938c69883cb..e6e173dcaf77 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/FileSchemaTestClass.php +++ b/samples/client/petstore/php/psr-18/lib/Model/FileSchemaTestClass.php @@ -45,49 +45,49 @@ class FileSchemaTestClass implements ModelInterface, ArrayAccess, \JsonSerializa public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'FileSchemaTestClass'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'file' => '\OpenAPI\Client\Model\File', 'files' => '\OpenAPI\Client\Model\File[]' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'file' => null, 'files' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'file' => false, 'files' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -255,14 +255,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/psr-18/lib/Model/Foo.php b/samples/client/petstore/php/psr-18/lib/Model/Foo.php index 906ba54919cf..51603a559a25 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/Foo.php +++ b/samples/client/petstore/php/psr-18/lib/Model/Foo.php @@ -45,46 +45,46 @@ class Foo implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'Foo'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'bar' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'bar' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'bar' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -248,14 +248,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/psr-18/lib/Model/FooGetDefaultResponse.php b/samples/client/petstore/php/psr-18/lib/Model/FooGetDefaultResponse.php index ff8c853e58e4..8e39527820d8 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/FooGetDefaultResponse.php +++ b/samples/client/petstore/php/psr-18/lib/Model/FooGetDefaultResponse.php @@ -45,46 +45,46 @@ class FooGetDefaultResponse implements ModelInterface, ArrayAccess, \JsonSeriali public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = '_foo_get_default_response'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'string' => '\OpenAPI\Client\Model\Foo' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'string' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'string' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -248,14 +248,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/psr-18/lib/Model/FormatTest.php b/samples/client/petstore/php/psr-18/lib/Model/FormatTest.php index d3fbf4756458..b81e62e04a19 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/FormatTest.php +++ b/samples/client/petstore/php/psr-18/lib/Model/FormatTest.php @@ -45,17 +45,17 @@ class FormatTest implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'format_test'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'integer' => 'int', 'int32' => 'int', @@ -76,12 +76,12 @@ class FormatTest implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'integer' => null, 'int32' => 'int32', @@ -102,10 +102,10 @@ class FormatTest implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'integer' => false, 'int32' => false, @@ -126,10 +126,10 @@ class FormatTest implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -353,14 +353,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/psr-18/lib/Model/HasOnlyReadOnly.php b/samples/client/petstore/php/psr-18/lib/Model/HasOnlyReadOnly.php index 10793dcca07f..313ba02e4826 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/HasOnlyReadOnly.php +++ b/samples/client/petstore/php/psr-18/lib/Model/HasOnlyReadOnly.php @@ -45,49 +45,49 @@ class HasOnlyReadOnly implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'hasOnlyReadOnly'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'bar' => 'string', 'foo' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'bar' => null, 'foo' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'bar' => false, 'foo' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -255,14 +255,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/psr-18/lib/Model/HealthCheckResult.php b/samples/client/petstore/php/psr-18/lib/Model/HealthCheckResult.php index 22bfe53bc7a4..7748d28af3f2 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/HealthCheckResult.php +++ b/samples/client/petstore/php/psr-18/lib/Model/HealthCheckResult.php @@ -46,46 +46,46 @@ class HealthCheckResult implements ModelInterface, ArrayAccess, \JsonSerializabl public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'HealthCheckResult'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'nullable_message' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'nullable_message' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'nullable_message' => true ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -249,14 +249,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/psr-18/lib/Model/MapTest.php b/samples/client/petstore/php/psr-18/lib/Model/MapTest.php index 26d0b078cfb1..99f3490c74fa 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/MapTest.php +++ b/samples/client/petstore/php/psr-18/lib/Model/MapTest.php @@ -45,17 +45,17 @@ class MapTest implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'MapTest'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'map_map_of_string' => 'array>', 'map_of_enum_string' => 'array', @@ -64,12 +64,12 @@ class MapTest implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'map_map_of_string' => null, 'map_of_enum_string' => null, @@ -78,10 +78,10 @@ class MapTest implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'map_map_of_string' => false, 'map_of_enum_string' => false, @@ -90,10 +90,10 @@ class MapTest implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -284,14 +284,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/psr-18/lib/Model/MixedPropertiesAndAdditionalPropertiesClass.php b/samples/client/petstore/php/psr-18/lib/Model/MixedPropertiesAndAdditionalPropertiesClass.php index 72980431fe67..1b6476a6dfe6 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/MixedPropertiesAndAdditionalPropertiesClass.php +++ b/samples/client/petstore/php/psr-18/lib/Model/MixedPropertiesAndAdditionalPropertiesClass.php @@ -45,17 +45,17 @@ class MixedPropertiesAndAdditionalPropertiesClass implements ModelInterface, Arr public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'MixedPropertiesAndAdditionalPropertiesClass'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'uuid' => 'string', 'date_time' => '\DateTime', @@ -63,12 +63,12 @@ class MixedPropertiesAndAdditionalPropertiesClass implements ModelInterface, Arr ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'uuid' => 'uuid', 'date_time' => 'date-time', @@ -76,10 +76,10 @@ class MixedPropertiesAndAdditionalPropertiesClass implements ModelInterface, Arr ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'uuid' => false, 'date_time' => false, @@ -87,10 +87,10 @@ class MixedPropertiesAndAdditionalPropertiesClass implements ModelInterface, Arr ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -262,14 +262,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/psr-18/lib/Model/Model200Response.php b/samples/client/petstore/php/psr-18/lib/Model/Model200Response.php index 00f804d691c8..4596bae2fcd6 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/Model200Response.php +++ b/samples/client/petstore/php/psr-18/lib/Model/Model200Response.php @@ -46,49 +46,49 @@ class Model200Response implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = '200_response'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'name' => 'int', 'class' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'name' => 'int32', 'class' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'name' => false, 'class' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -256,14 +256,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/psr-18/lib/Model/ModelList.php b/samples/client/petstore/php/psr-18/lib/Model/ModelList.php index 7afdb3f323c9..7f910f115d47 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/ModelList.php +++ b/samples/client/petstore/php/psr-18/lib/Model/ModelList.php @@ -45,46 +45,46 @@ class ModelList implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'List'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ '_123_list' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ '_123_list' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ '_123_list' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -248,14 +248,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/psr-18/lib/Model/ModelReturn.php b/samples/client/petstore/php/psr-18/lib/Model/ModelReturn.php index 66f7d7bcc335..3eebb24ec94c 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/ModelReturn.php +++ b/samples/client/petstore/php/psr-18/lib/Model/ModelReturn.php @@ -46,46 +46,46 @@ class ModelReturn implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'Return'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'return' => 'int' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'return' => 'int32' ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'return' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -249,14 +249,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/psr-18/lib/Model/Name.php b/samples/client/petstore/php/psr-18/lib/Model/Name.php index 578fe2380647..a4d397a6c91c 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/Name.php +++ b/samples/client/petstore/php/psr-18/lib/Model/Name.php @@ -46,17 +46,17 @@ class Name implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'Name'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'name' => 'int', 'snake_case' => 'int', @@ -65,12 +65,12 @@ class Name implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'name' => 'int32', 'snake_case' => 'int32', @@ -79,10 +79,10 @@ class Name implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'name' => false, 'snake_case' => false, @@ -91,10 +91,10 @@ class Name implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -270,14 +270,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/psr-18/lib/Model/NullableClass.php b/samples/client/petstore/php/psr-18/lib/Model/NullableClass.php index 050a969427fe..4669ab8b1125 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/NullableClass.php +++ b/samples/client/petstore/php/psr-18/lib/Model/NullableClass.php @@ -45,17 +45,17 @@ class NullableClass implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'NullableClass'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'integer_prop' => 'int', 'number_prop' => 'float', @@ -72,12 +72,12 @@ class NullableClass implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'integer_prop' => null, 'number_prop' => null, @@ -94,10 +94,10 @@ class NullableClass implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'integer_prop' => true, 'number_prop' => true, @@ -114,10 +114,10 @@ class NullableClass implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -325,14 +325,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/psr-18/lib/Model/NumberOnly.php b/samples/client/petstore/php/psr-18/lib/Model/NumberOnly.php index d8b0e5883cf1..eff39beb341f 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/NumberOnly.php +++ b/samples/client/petstore/php/psr-18/lib/Model/NumberOnly.php @@ -45,46 +45,46 @@ class NumberOnly implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'NumberOnly'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'just_number' => 'float' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'just_number' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'just_number' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -248,14 +248,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/psr-18/lib/Model/ObjectWithDeprecatedFields.php b/samples/client/petstore/php/psr-18/lib/Model/ObjectWithDeprecatedFields.php index 114075500269..af302cc7a1ca 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/ObjectWithDeprecatedFields.php +++ b/samples/client/petstore/php/psr-18/lib/Model/ObjectWithDeprecatedFields.php @@ -45,17 +45,17 @@ class ObjectWithDeprecatedFields implements ModelInterface, ArrayAccess, \JsonSe public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'ObjectWithDeprecatedFields'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'uuid' => 'string', 'id' => 'float', @@ -64,12 +64,12 @@ class ObjectWithDeprecatedFields implements ModelInterface, ArrayAccess, \JsonSe ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'uuid' => null, 'id' => null, @@ -78,10 +78,10 @@ class ObjectWithDeprecatedFields implements ModelInterface, ArrayAccess, \JsonSe ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'uuid' => false, 'id' => false, @@ -90,10 +90,10 @@ class ObjectWithDeprecatedFields implements ModelInterface, ArrayAccess, \JsonSe ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -269,14 +269,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/psr-18/lib/Model/Order.php b/samples/client/petstore/php/psr-18/lib/Model/Order.php index 716a6e19e65c..ff3a221ca2ca 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/Order.php +++ b/samples/client/petstore/php/psr-18/lib/Model/Order.php @@ -45,17 +45,17 @@ class Order implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'Order'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'id' => 'int', 'pet_id' => 'int', @@ -66,12 +66,12 @@ class Order implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'id' => 'int64', 'pet_id' => 'int64', @@ -82,10 +82,10 @@ class Order implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'id' => false, 'pet_id' => false, @@ -96,10 +96,10 @@ class Order implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -300,14 +300,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/psr-18/lib/Model/OuterComposite.php b/samples/client/petstore/php/psr-18/lib/Model/OuterComposite.php index 69c692450ab1..51450376647a 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/OuterComposite.php +++ b/samples/client/petstore/php/psr-18/lib/Model/OuterComposite.php @@ -45,17 +45,17 @@ class OuterComposite implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'OuterComposite'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'my_number' => 'float', 'my_string' => 'string', @@ -63,12 +63,12 @@ class OuterComposite implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'my_number' => null, 'my_string' => null, @@ -76,10 +76,10 @@ class OuterComposite implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'my_number' => false, 'my_string' => false, @@ -87,10 +87,10 @@ class OuterComposite implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -262,14 +262,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/psr-18/lib/Model/OuterObjectWithEnumProperty.php b/samples/client/petstore/php/psr-18/lib/Model/OuterObjectWithEnumProperty.php index ec09e1ce98d3..275dba19328d 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/OuterObjectWithEnumProperty.php +++ b/samples/client/petstore/php/psr-18/lib/Model/OuterObjectWithEnumProperty.php @@ -45,46 +45,46 @@ class OuterObjectWithEnumProperty implements ModelInterface, ArrayAccess, \JsonS public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'OuterObjectWithEnumProperty'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'value' => '\OpenAPI\Client\Model\OuterEnumInteger' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'value' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'value' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -248,14 +248,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/psr-18/lib/Model/Pet.php b/samples/client/petstore/php/psr-18/lib/Model/Pet.php index ce6c5bc54269..fc05703ec644 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/Pet.php +++ b/samples/client/petstore/php/psr-18/lib/Model/Pet.php @@ -45,17 +45,17 @@ class Pet implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'Pet'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'id' => 'int', 'category' => '\OpenAPI\Client\Model\Category', @@ -66,12 +66,12 @@ class Pet implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'id' => 'int64', 'category' => null, @@ -82,10 +82,10 @@ class Pet implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'id' => false, 'category' => false, @@ -96,10 +96,10 @@ class Pet implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -300,14 +300,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/psr-18/lib/Model/PetWithFile.php b/samples/client/petstore/php/psr-18/lib/Model/PetWithFile.php index 20ebde3a5a08..9be246ad21f4 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/PetWithFile.php +++ b/samples/client/petstore/php/psr-18/lib/Model/PetWithFile.php @@ -45,17 +45,17 @@ class PetWithFile implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'PetWithFile'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'id' => 'int', 'category' => '\OpenAPI\Client\Model\Category', @@ -68,12 +68,12 @@ class PetWithFile implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'id' => 'int64', 'category' => null, @@ -86,10 +86,10 @@ class PetWithFile implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'id' => false, 'category' => false, @@ -102,10 +102,10 @@ class PetWithFile implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -314,14 +314,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/psr-18/lib/Model/PropertyNameMapping.php b/samples/client/petstore/php/psr-18/lib/Model/PropertyNameMapping.php index f73b82a5cabe..a5934e34646d 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/PropertyNameMapping.php +++ b/samples/client/petstore/php/psr-18/lib/Model/PropertyNameMapping.php @@ -45,17 +45,17 @@ class PropertyNameMapping implements ModelInterface, ArrayAccess, \JsonSerializa public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'PropertyNameMapping'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'http_debug_operation' => 'string', 'underscore_type' => 'string', @@ -64,12 +64,12 @@ class PropertyNameMapping implements ModelInterface, ArrayAccess, \JsonSerializa ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'http_debug_operation' => null, 'underscore_type' => null, @@ -78,10 +78,10 @@ class PropertyNameMapping implements ModelInterface, ArrayAccess, \JsonSerializa ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'http_debug_operation' => false, 'underscore_type' => false, @@ -90,10 +90,10 @@ class PropertyNameMapping implements ModelInterface, ArrayAccess, \JsonSerializa ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -269,14 +269,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/psr-18/lib/Model/ReadOnlyFirst.php b/samples/client/petstore/php/psr-18/lib/Model/ReadOnlyFirst.php index 9b8096d1b901..3169272641d6 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/ReadOnlyFirst.php +++ b/samples/client/petstore/php/psr-18/lib/Model/ReadOnlyFirst.php @@ -45,49 +45,49 @@ class ReadOnlyFirst implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'ReadOnlyFirst'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'bar' => 'string', 'baz' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'bar' => null, 'baz' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'bar' => false, 'baz' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -255,14 +255,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/psr-18/lib/Model/SpecialModelName.php b/samples/client/petstore/php/psr-18/lib/Model/SpecialModelName.php index 0a1b36b9b863..380b2865a5a5 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/SpecialModelName.php +++ b/samples/client/petstore/php/psr-18/lib/Model/SpecialModelName.php @@ -45,46 +45,46 @@ class SpecialModelName implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = '_special_model.name_'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'special_property_name' => 'int' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'special_property_name' => 'int64' ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'special_property_name' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -248,14 +248,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/psr-18/lib/Model/Tag.php b/samples/client/petstore/php/psr-18/lib/Model/Tag.php index 08f0aee4f42c..04c6d8625443 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/Tag.php +++ b/samples/client/petstore/php/psr-18/lib/Model/Tag.php @@ -45,49 +45,49 @@ class Tag implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'Tag'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'id' => 'int', 'name' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'id' => 'int64', 'name' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'id' => false, 'name' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -255,14 +255,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/psr-18/lib/Model/TestInlineFreeformAdditionalPropertiesRequest.php b/samples/client/petstore/php/psr-18/lib/Model/TestInlineFreeformAdditionalPropertiesRequest.php index 36c024daa904..5d36500e242c 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/TestInlineFreeformAdditionalPropertiesRequest.php +++ b/samples/client/petstore/php/psr-18/lib/Model/TestInlineFreeformAdditionalPropertiesRequest.php @@ -45,46 +45,46 @@ class TestInlineFreeformAdditionalPropertiesRequest implements ModelInterface, A public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'testInlineFreeformAdditionalProperties_request'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'some_property' => 'string' ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'some_property' => null ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'some_property' => false ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -248,14 +248,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/client/petstore/php/psr-18/lib/Model/User.php b/samples/client/petstore/php/psr-18/lib/Model/User.php index 0c2c38c1ae93..d65860a4a31b 100644 --- a/samples/client/petstore/php/psr-18/lib/Model/User.php +++ b/samples/client/petstore/php/psr-18/lib/Model/User.php @@ -45,17 +45,17 @@ class User implements ModelInterface, ArrayAccess, \JsonSerializable public const DISCRIMINATOR = null; /** - * The original name of the model. - * - * @var string - */ + * The original name of the model. + * + * @var string + */ protected static $openAPIModelName = 'User'; /** - * Array of property to type mappings. Used for (de)serialization - * - * @var string[] - */ + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ protected static $openAPITypes = [ 'id' => 'int', 'username' => 'string', @@ -68,12 +68,12 @@ class User implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of property to format mappings. Used for (de)serialization - * - * @var string[] - * @phpstan-var array - * @psalm-var array - */ + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ protected static $openAPIFormats = [ 'id' => 'int64', 'username' => null, @@ -86,10 +86,10 @@ class User implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * Array of nullable properties. Used for (de)serialization - * - * @var boolean[] - */ + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ protected static array $openAPINullables = [ 'id' => false, 'username' => false, @@ -102,10 +102,10 @@ class User implements ModelInterface, ArrayAccess, \JsonSerializable ]; /** - * If a nullable field gets set to null, insert it here - * - * @var boolean[] - */ + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ protected array $openAPINullablesSetToNull = []; /** @@ -297,14 +297,14 @@ public function __construct(?array $data = null) } /** - * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName - * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the - * $this->openAPINullablesSetToNull array - * - * @param string $variableName - * @param array $fields - * @param mixed $defaultValue - */ + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ private function setIfExists(string $variableName, array $fields, $defaultValue): void { if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { diff --git a/samples/server/petstore/php-symfony/SymfonyBundle-php/Model/ApiResponse.php b/samples/server/petstore/php-symfony/SymfonyBundle-php/Model/ApiResponse.php index 0ac640c06647..fde756edc850 100644 --- a/samples/server/petstore/php-symfony/SymfonyBundle-php/Model/ApiResponse.php +++ b/samples/server/petstore/php-symfony/SymfonyBundle-php/Model/ApiResponse.php @@ -49,7 +49,7 @@ class ApiResponse * @var int|null * @SerializedName("code") * @Type("int") - */ + */ #[Assert\Type("int")] protected ?int $code = null; @@ -57,7 +57,7 @@ class ApiResponse * @var string|null * @SerializedName("type") * @Type("string") - */ + */ #[Assert\Type("string")] protected ?string $type = null; @@ -65,7 +65,7 @@ class ApiResponse * @var string|null * @SerializedName("message") * @Type("string") - */ + */ #[Assert\Type("string")] protected ?string $message = null; @@ -93,12 +93,12 @@ public function getCode(): ?int } /** - * Sets code. - * - * @param int|null $code - * - * @return $this - */ + * Sets code. + * + * @param int|null $code + * + * @return $this + */ public function setCode(?int $code = null): self { $this->code = $code; @@ -120,12 +120,12 @@ public function getType(): ?string } /** - * Sets type. - * - * @param string|null $type - * - * @return $this - */ + * Sets type. + * + * @param string|null $type + * + * @return $this + */ public function setType(?string $type = null): self { $this->type = $type; @@ -147,12 +147,12 @@ public function getMessage(): ?string } /** - * Sets message. - * - * @param string|null $message - * - * @return $this - */ + * Sets message. + * + * @param string|null $message + * + * @return $this + */ public function setMessage(?string $message = null): self { $this->message = $message; diff --git a/samples/server/petstore/php-symfony/SymfonyBundle-php/Model/Category.php b/samples/server/petstore/php-symfony/SymfonyBundle-php/Model/Category.php index 1debfbf9c160..676fd72fbb71 100644 --- a/samples/server/petstore/php-symfony/SymfonyBundle-php/Model/Category.php +++ b/samples/server/petstore/php-symfony/SymfonyBundle-php/Model/Category.php @@ -49,7 +49,7 @@ class Category * @var int|null * @SerializedName("id") * @Type("int") - */ + */ #[Assert\Type("int")] protected ?int $id = null; @@ -57,7 +57,7 @@ class Category * @var string|null * @SerializedName("name") * @Type("string") - */ + */ #[Assert\Type("string")] #[Assert\Regex("/^[a-zA-Z0-9]+[a-zA-Z0-9\\.\\-_]*[a-zA-Z0-9]+$/")] protected ?string $name = null; @@ -85,12 +85,12 @@ public function getId(): ?int } /** - * Sets id. - * - * @param int|null $id - * - * @return $this - */ + * Sets id. + * + * @param int|null $id + * + * @return $this + */ public function setId(?int $id = null): self { $this->id = $id; @@ -112,12 +112,12 @@ public function getName(): ?string } /** - * Sets name. - * - * @param string|null $name - * - * @return $this - */ + * Sets name. + * + * @param string|null $name + * + * @return $this + */ public function setName(?string $name = null): self { $this->name = $name; diff --git a/samples/server/petstore/php-symfony/SymfonyBundle-php/Model/Order.php b/samples/server/petstore/php-symfony/SymfonyBundle-php/Model/Order.php index 47ee65e211cf..d08888b9fda1 100644 --- a/samples/server/petstore/php-symfony/SymfonyBundle-php/Model/Order.php +++ b/samples/server/petstore/php-symfony/SymfonyBundle-php/Model/Order.php @@ -49,7 +49,7 @@ class Order * @var int|null * @SerializedName("id") * @Type("int") - */ + */ #[Assert\Type("int")] protected ?int $id = null; @@ -57,7 +57,7 @@ class Order * @var int|null * @SerializedName("petId") * @Type("int") - */ + */ #[Assert\Type("int")] protected ?int $petId = null; @@ -65,7 +65,7 @@ class Order * @var int|null * @SerializedName("quantity") * @Type("int") - */ + */ #[Assert\Type("int")] protected ?int $quantity = null; @@ -73,7 +73,7 @@ class Order * @var \DateTime|null * @SerializedName("shipDate") * @Type("DateTime") - */ + */ #[Assert\Type("\DateTime")] protected ?\DateTime $shipDate = null; @@ -83,7 +83,7 @@ class Order * @var string|null * @SerializedName("status") * @Type("string") - */ + */ #[Assert\Choice(['placed', 'approved', 'delivered'])] #[Assert\Type("string")] protected ?string $status = null; @@ -92,7 +92,7 @@ class Order * @var bool|null * @SerializedName("complete") * @Type("bool") - */ + */ #[Assert\Type("bool")] protected ?bool $complete = false; @@ -123,12 +123,12 @@ public function getId(): ?int } /** - * Sets id. - * - * @param int|null $id - * - * @return $this - */ + * Sets id. + * + * @param int|null $id + * + * @return $this + */ public function setId(?int $id = null): self { $this->id = $id; @@ -150,12 +150,12 @@ public function getPetId(): ?int } /** - * Sets petId. - * - * @param int|null $petId - * - * @return $this - */ + * Sets petId. + * + * @param int|null $petId + * + * @return $this + */ public function setPetId(?int $petId = null): self { $this->petId = $petId; @@ -177,12 +177,12 @@ public function getQuantity(): ?int } /** - * Sets quantity. - * - * @param int|null $quantity - * - * @return $this - */ + * Sets quantity. + * + * @param int|null $quantity + * + * @return $this + */ public function setQuantity(?int $quantity = null): self { $this->quantity = $quantity; @@ -204,12 +204,12 @@ public function getShipDate(): ?\DateTime } /** - * Sets shipDate. - * - * @param \DateTime|null $shipDate - * - * @return $this - */ + * Sets shipDate. + * + * @param \DateTime|null $shipDate + * + * @return $this + */ public function setShipDate(?\DateTime $shipDate = null): self { $this->shipDate = $shipDate; @@ -231,12 +231,12 @@ public function getStatus(): ?string } /** - * Sets status. - * - * @param string|null $status Order Status - * - * @return $this - */ + * Sets status. + * + * @param string|null $status Order Status + * + * @return $this + */ public function setStatus(?string $status = null): self { $this->status = $status; @@ -258,12 +258,12 @@ public function isComplete(): ?bool } /** - * Sets complete. - * - * @param bool|null $complete - * - * @return $this - */ + * Sets complete. + * + * @param bool|null $complete + * + * @return $this + */ public function setComplete(?bool $complete = null): self { $this->complete = $complete; diff --git a/samples/server/petstore/php-symfony/SymfonyBundle-php/Model/Pet.php b/samples/server/petstore/php-symfony/SymfonyBundle-php/Model/Pet.php index 299b55f603ec..bb09c66f28ec 100644 --- a/samples/server/petstore/php-symfony/SymfonyBundle-php/Model/Pet.php +++ b/samples/server/petstore/php-symfony/SymfonyBundle-php/Model/Pet.php @@ -49,7 +49,7 @@ class Pet * @var int|null * @SerializedName("id") * @Type("int") - */ + */ #[Assert\Type("int")] protected ?int $id = null; @@ -57,7 +57,7 @@ class Pet * @var Category|null * @SerializedName("category") * @Type("OpenAPI\Server\Model\Category") - */ + */ #[Assert\Type("OpenAPI\Server\Model\Category")] protected ?Category $category = null; @@ -65,7 +65,7 @@ class Pet * @var string|null * @SerializedName("name") * @Type("string") - */ + */ #[Assert\NotNull] #[Assert\Type("string")] protected ?string $name = null; @@ -74,7 +74,7 @@ class Pet * @var string[]|null * @SerializedName("photoUrls") * @Type("array") - */ + */ #[Assert\NotNull] #[Assert\All([ new Assert\Type("string"), @@ -85,7 +85,7 @@ class Pet * @var Tag[]|null * @SerializedName("tags") * @Type("array") - */ + */ #[Assert\All([ new Assert\Type("OpenAPI\Server\Model\Tag"), ])] @@ -97,7 +97,7 @@ class Pet * @var string|null * @SerializedName("status") * @Type("string") - */ + */ #[Assert\Choice(['available', 'pending', 'sold'])] #[Assert\Type("string")] protected ?string $status = null; @@ -129,12 +129,12 @@ public function getId(): ?int } /** - * Sets id. - * - * @param int|null $id - * - * @return $this - */ + * Sets id. + * + * @param int|null $id + * + * @return $this + */ public function setId(?int $id = null): self { $this->id = $id; @@ -156,12 +156,12 @@ public function getCategory(): ?Category } /** - * Sets category. - * - * @param Category|null $category - * - * @return $this - */ + * Sets category. + * + * @param Category|null $category + * + * @return $this + */ public function setCategory(?Category $category = null): self { $this->category = $category; @@ -183,12 +183,12 @@ public function getName(): ?string } /** - * Sets name. - * - * @param string|null $name - * - * @return $this - */ + * Sets name. + * + * @param string|null $name + * + * @return $this + */ public function setName(?string $name): self { $this->name = $name; @@ -210,12 +210,12 @@ public function getPhotoUrls(): ?array } /** - * Sets photoUrls. - * - * @param string[]|null $photoUrls - * - * @return $this - */ + * Sets photoUrls. + * + * @param string[]|null $photoUrls + * + * @return $this + */ public function setPhotoUrls(?array $photoUrls): self { $this->photoUrls = $photoUrls; @@ -237,12 +237,12 @@ public function getTags(): ?array } /** - * Sets tags. - * - * @param Tag[]|null $tags - * - * @return $this - */ + * Sets tags. + * + * @param Tag[]|null $tags + * + * @return $this + */ public function setTags(?array $tags = null): self { $this->tags = $tags; @@ -264,12 +264,12 @@ public function getStatus(): ?string } /** - * Sets status. - * - * @param string|null $status pet status in the store - * - * @return $this - */ + * Sets status. + * + * @param string|null $status pet status in the store + * + * @return $this + */ public function setStatus(?string $status = null): self { $this->status = $status; diff --git a/samples/server/petstore/php-symfony/SymfonyBundle-php/Model/Tag.php b/samples/server/petstore/php-symfony/SymfonyBundle-php/Model/Tag.php index f42c3e2bceb3..a1cf40fdfb22 100644 --- a/samples/server/petstore/php-symfony/SymfonyBundle-php/Model/Tag.php +++ b/samples/server/petstore/php-symfony/SymfonyBundle-php/Model/Tag.php @@ -49,7 +49,7 @@ class Tag * @var int|null * @SerializedName("id") * @Type("int") - */ + */ #[Assert\Type("int")] protected ?int $id = null; @@ -57,7 +57,7 @@ class Tag * @var string|null * @SerializedName("name") * @Type("string") - */ + */ #[Assert\Type("string")] protected ?string $name = null; @@ -84,12 +84,12 @@ public function getId(): ?int } /** - * Sets id. - * - * @param int|null $id - * - * @return $this - */ + * Sets id. + * + * @param int|null $id + * + * @return $this + */ public function setId(?int $id = null): self { $this->id = $id; @@ -111,12 +111,12 @@ public function getName(): ?string } /** - * Sets name. - * - * @param string|null $name - * - * @return $this - */ + * Sets name. + * + * @param string|null $name + * + * @return $this + */ public function setName(?string $name = null): self { $this->name = $name; diff --git a/samples/server/petstore/php-symfony/SymfonyBundle-php/Model/User.php b/samples/server/petstore/php-symfony/SymfonyBundle-php/Model/User.php index aec38c6a73ef..7380c1243cb1 100644 --- a/samples/server/petstore/php-symfony/SymfonyBundle-php/Model/User.php +++ b/samples/server/petstore/php-symfony/SymfonyBundle-php/Model/User.php @@ -49,7 +49,7 @@ class User * @var int|null * @SerializedName("id") * @Type("int") - */ + */ #[Assert\Type("int")] protected ?int $id = null; @@ -57,7 +57,7 @@ class User * @var string|null * @SerializedName("username") * @Type("string") - */ + */ #[Assert\Type("string")] protected ?string $username = null; @@ -65,7 +65,7 @@ class User * @var string|null * @SerializedName("firstName") * @Type("string") - */ + */ #[Assert\Type("string")] protected ?string $firstName = null; @@ -73,7 +73,7 @@ class User * @var string|null * @SerializedName("lastName") * @Type("string") - */ + */ #[Assert\Type("string")] protected ?string $lastName = null; @@ -81,7 +81,7 @@ class User * @var string|null * @SerializedName("email") * @Type("string") - */ + */ #[Assert\Type("string")] protected ?string $email = null; @@ -89,7 +89,7 @@ class User * @var string|null * @SerializedName("password") * @Type("string") - */ + */ #[Assert\Type("string")] protected ?string $password = null; @@ -97,7 +97,7 @@ class User * @var string|null * @SerializedName("phone") * @Type("string") - */ + */ #[Assert\Type("string")] protected ?string $phone = null; @@ -107,7 +107,7 @@ class User * @var int|null * @SerializedName("userStatus") * @Type("int") - */ + */ #[Assert\Type("int")] protected ?int $userStatus = null; @@ -140,12 +140,12 @@ public function getId(): ?int } /** - * Sets id. - * - * @param int|null $id - * - * @return $this - */ + * Sets id. + * + * @param int|null $id + * + * @return $this + */ public function setId(?int $id = null): self { $this->id = $id; @@ -167,12 +167,12 @@ public function getUsername(): ?string } /** - * Sets username. - * - * @param string|null $username - * - * @return $this - */ + * Sets username. + * + * @param string|null $username + * + * @return $this + */ public function setUsername(?string $username = null): self { $this->username = $username; @@ -194,12 +194,12 @@ public function getFirstName(): ?string } /** - * Sets firstName. - * - * @param string|null $firstName - * - * @return $this - */ + * Sets firstName. + * + * @param string|null $firstName + * + * @return $this + */ public function setFirstName(?string $firstName = null): self { $this->firstName = $firstName; @@ -221,12 +221,12 @@ public function getLastName(): ?string } /** - * Sets lastName. - * - * @param string|null $lastName - * - * @return $this - */ + * Sets lastName. + * + * @param string|null $lastName + * + * @return $this + */ public function setLastName(?string $lastName = null): self { $this->lastName = $lastName; @@ -248,12 +248,12 @@ public function getEmail(): ?string } /** - * Sets email. - * - * @param string|null $email - * - * @return $this - */ + * Sets email. + * + * @param string|null $email + * + * @return $this + */ public function setEmail(?string $email = null): self { $this->email = $email; @@ -275,12 +275,12 @@ public function getPassword(): ?string } /** - * Sets password. - * - * @param string|null $password - * - * @return $this - */ + * Sets password. + * + * @param string|null $password + * + * @return $this + */ public function setPassword(?string $password = null): self { $this->password = $password; @@ -302,12 +302,12 @@ public function getPhone(): ?string } /** - * Sets phone. - * - * @param string|null $phone - * - * @return $this - */ + * Sets phone. + * + * @param string|null $phone + * + * @return $this + */ public function setPhone(?string $phone = null): self { $this->phone = $phone; @@ -329,12 +329,12 @@ public function getUserStatus(): ?int } /** - * Sets userStatus. - * - * @param int|null $userStatus User Status - * - * @return $this - */ + * Sets userStatus. + * + * @param int|null $userStatus User Status + * + * @return $this + */ public function setUserStatus(?int $userStatus = null): self { $this->userStatus = $userStatus;