Sem Schilder 4210b41f84
[php-symfony] Add backslash to "load" namespaces from global namespace (#9740)
* Add backslash to load namespace from global namespace

* Update example

* Remove hardcoded slash

* Add backslash from java side

* Update samples

* Fix first sample

* Fix other snapshot

* Update version file
2021-08-03 17:09:52 +08:00

124 lines
2.4 KiB
PHP

<?php
/**
* InlineObject
*
* PHP version 7.1.3
*
* @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 InlineObject model.
*
* @package OpenAPI\Server\Model
* @author OpenAPI Generator team
*/
class InlineObject
{
/**
* Updated name of the pet
*
* @var string|null
* @SerializedName("name")
* @Assert\Type("string")
* @Type("string")
*/
protected $name;
/**
* Updated status of the pet
*
* @var string|null
* @SerializedName("status")
* @Assert\Type("string")
* @Type("string")
*/
protected $status;
/**
* Constructor
* @param mixed[] $data Associated array of property values initializing the model
*/
public function __construct(array $data = null)
{
$this->name = isset($data['name']) ? $data['name'] : null;
$this->status = isset($data['status']) ? $data['status'] : null;
}
/**
* Gets name.
*
* @return string|null
*/
public function getName()
{
return $this->name;
}
/**
* Sets name.
*
* @param string|null $name Updated name of the pet
*
* @return $this
*/
public function setName($name = null)
{
$this->name = $name;
return $this;
}
/**
* Gets status.
*
* @return string|null
*/
public function getStatus()
{
return $this->status;
}
/**
* Sets status.
*
* @param string|null $status Updated status of the pet
*
* @return $this
*/
public function setStatus($status = null)
{
$this->status = $status;
return $this;
}
}