forked from loafle/openapi-generator-original
* [Slim4] Add new method to Mocker interface * [Slim4] Add implementation and tests for new method * [Slim4] Add test fixture to encrease code coverage * [Slim4] Add ref support to mockArray method * [Slim4] Add mockFromRef method * [Slim4] Add ref support to mockObject method * [Slim4] Add ModelInterface * [Slim4] Refresh samples * [Slim4] Add ref support to mockFromSchema method * [Slim4] Run all test suites by default test command As it turnes out to generate coverage report for a whole project I need to run all test suites at once. * [Slim4] Fix enum option of string mocking
87 lines
1.8 KiB
PHP
87 lines
1.8 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Capitalization
|
|
*
|
|
* 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;
|
|
|
|
/**
|
|
* Capitalization
|
|
*
|
|
* @package OpenAPIServer\Model
|
|
* @author OpenAPI Generator team
|
|
* @link https://github.com/openapitools/openapi-generator
|
|
*/
|
|
class Capitalization implements ModelInterface
|
|
{
|
|
private const MODEL_SCHEMA = <<<'SCHEMA'
|
|
{
|
|
"type" : "object",
|
|
"properties" : {
|
|
"smallCamel" : {
|
|
"type" : "string"
|
|
},
|
|
"CapitalCamel" : {
|
|
"type" : "string"
|
|
},
|
|
"small_Snake" : {
|
|
"type" : "string"
|
|
},
|
|
"Capital_Snake" : {
|
|
"type" : "string"
|
|
},
|
|
"SCA_ETH_Flow_Points" : {
|
|
"type" : "string"
|
|
},
|
|
"ATT_NAME" : {
|
|
"type" : "string",
|
|
"description" : "Name of the pet\n"
|
|
}
|
|
}
|
|
}
|
|
SCHEMA;
|
|
|
|
/** @var string $smallCamel */
|
|
private $smallCamel;
|
|
|
|
/** @var string $capitalCamel */
|
|
private $capitalCamel;
|
|
|
|
/** @var string $smallSnake */
|
|
private $smallSnake;
|
|
|
|
/** @var string $capitalSnake */
|
|
private $capitalSnake;
|
|
|
|
/** @var string $sCAETHFlowPoints */
|
|
private $sCAETHFlowPoints;
|
|
|
|
/** @var string $aTTNAME Name of the pet*/
|
|
private $aTTNAME;
|
|
|
|
/**
|
|
* 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);
|
|
}
|
|
}
|