forked from loafle/openapi-generator-original
65 lines
1.4 KiB
PHP
65 lines
1.4 KiB
PHP
<?php
|
|
|
|
/**
|
|
* InlineObject1
|
|
*
|
|
* 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;
|
|
|
|
/**
|
|
* InlineObject1
|
|
*
|
|
* @package OpenAPIServer\Model
|
|
* @author OpenAPI Generator team
|
|
* @link https://github.com/openapitools/openapi-generator
|
|
*/
|
|
class InlineObject1 implements ModelInterface
|
|
{
|
|
private const MODEL_SCHEMA = <<<'SCHEMA'
|
|
{
|
|
"type" : "object",
|
|
"properties" : {
|
|
"additionalMetadata" : {
|
|
"type" : "string",
|
|
"description" : "Additional data to pass to server"
|
|
},
|
|
"file" : {
|
|
"type" : "string",
|
|
"description" : "file to upload",
|
|
"format" : "binary"
|
|
}
|
|
}
|
|
}
|
|
SCHEMA;
|
|
|
|
/** @var string $additionalMetadata Additional data to pass to server*/
|
|
private $additionalMetadata;
|
|
|
|
/** @var \SplFileObject $file file to upload*/
|
|
private $file;
|
|
|
|
/**
|
|
* 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);
|
|
}
|
|
}
|