Benjamin Häublein 77fa028bb3
[php-symfony] Symfony6 support (#11810)
* support symfony6

* fix issues with StrictJsonDeserialization

* regenerate samples

* add suggestions

* update samples

* support php 7.4 and symfony 5

* allow versions based on semantic versioning

* regenerate sample

* change method of determining result types

* update samples

* describe usage of bundle in symfony app

* better documentation

* fix duplicate auth methods

* do not set namespace for default types

* fix UploadedFile type

* next try fixing auth

* regenerate samples

* fix: auth method shall not be duplicated

* Revert "fix duplicate auth methods"

This reverts commit 0dc418737b1379a30b7f22e7937819ba965c9ddb.

* chore: regenerate samples

* fix tests

* regenerate sample

* more fixes for tests

* update tests

* add kernel shutdown

Co-authored-by: Benjamin Haeublein <benjaminh@testing-vm.lan.benjaminh.de>
Co-authored-by: Renaud de Chivré <renaud@tahitiwebdesign.com>
2022-05-25 15:34:50 +08:00

155 lines
2.9 KiB
PHP

<?php
/**
* ApiResponse
*
* PHP version 8.1.1
*
* @category Class
* @package OpenAPI\Server\Model
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* OpenAPI Petstore
*
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator
* Do not edit the class manually.
*/
namespace OpenAPI\Server\Model;
use Symfony\Component\Validator\Constraints as Assert;
use JMS\Serializer\Annotation\Type;
use JMS\Serializer\Annotation\SerializedName;
/**
* Class representing the ApiResponse model.
*
* Describes the result of uploading an image resource
*
* @package OpenAPI\Server\Model
* @author OpenAPI Generator team
*/
class ApiResponse
{
/**
* @var int|null
* @SerializedName("code")
* @Assert\Type("int")
* @Type("int")
*/
protected $code;
/**
* @var string|null
* @SerializedName("type")
* @Assert\Type("string")
* @Type("string")
*/
protected $type;
/**
* @var string|null
* @SerializedName("message")
* @Assert\Type("string")
* @Type("string")
*/
protected $message;
/**
* Constructor
* @param mixed[] $data Associated array of property values initializing the model
*/
public function __construct(array $data = null)
{
$this->code = isset($data['code']) ? $data['code'] : null;
$this->type = isset($data['type']) ? $data['type'] : null;
$this->message = isset($data['message']) ? $data['message'] : null;
}
/**
* Gets code.
*
* @return int|null
*/
public function getCode()
{
return $this->code;
}
/**
* Sets code.
*
* @param int|null $code
*
* @return $this
*/
public function setCode($code = null)
{
$this->code = $code;
return $this;
}
/**
* Gets type.
*
* @return string|null
*/
public function getType()
{
return $this->type;
}
/**
* Sets type.
*
* @param string|null $type
*
* @return $this
*/
public function setType($type = null)
{
$this->type = $type;
return $this;
}
/**
* Gets message.
*
* @return string|null
*/
public function getMessage()
{
return $this->message;
}
/**
* Sets message.
*
* @param string|null $message
*
* @return $this
*/
public function setMessage($message = null)
{
$this->message = $message;
return $this;
}
}