forked from loafle/openapi-generator-original
64 lines
1.3 KiB
PHP
64 lines
1.3 KiB
PHP
<?php
|
|
|
|
/**
|
|
* InlineObject
|
|
*
|
|
* PHP version 7.1
|
|
*
|
|
* @package OpenAPIServer\Model
|
|
* @author OpenAPI Generator team
|
|
* @link https://github.com/openapitools/openapi-generator
|
|
*/
|
|
|
|
/**
|
|
* NOTE: This class is auto generated by the openapi generator program.
|
|
* https://github.com/openapitools/openapi-generator
|
|
*/
|
|
namespace OpenAPIServer\Model;
|
|
|
|
use OpenAPIServer\Interfaces\ModelInterface;
|
|
|
|
/**
|
|
* InlineObject
|
|
*
|
|
* @package OpenAPIServer\Model
|
|
* @author OpenAPI Generator team
|
|
* @link https://github.com/openapitools/openapi-generator
|
|
*/
|
|
class InlineObject implements ModelInterface
|
|
{
|
|
private const MODEL_SCHEMA = <<<'SCHEMA'
|
|
{
|
|
"type" : "object",
|
|
"properties" : {
|
|
"name" : {
|
|
"type" : "string",
|
|
"description" : "Updated name of the pet"
|
|
},
|
|
"status" : {
|
|
"type" : "string",
|
|
"description" : "Updated status of the pet"
|
|
}
|
|
}
|
|
}
|
|
SCHEMA;
|
|
|
|
/** @var string $name Updated name of the pet*/
|
|
private $name;
|
|
|
|
/** @var string $status Updated status of the pet*/
|
|
private $status;
|
|
|
|
/**
|
|
* Returns model schema.
|
|
*
|
|
* @param bool $assoc When TRUE, returned objects will be converted into associative arrays. Default FALSE.
|
|
*
|
|
* @return array
|
|
*/
|
|
public static function getOpenApiSchema($assoc = false)
|
|
{
|
|
return json_decode(static::MODEL_SCHEMA, $assoc);
|
|
}
|
|
}
|