32 lines
555 B
PHP
32 lines
555 B
PHP
<?php
|
|
|
|
namespace Knuckles\Camel\Extraction;
|
|
|
|
use Knuckles\Camel\BaseDTO;
|
|
|
|
class ResponseField extends BaseDTO
|
|
{
|
|
// TODO make this extend Parameter, so we can have strong types and a unified API
|
|
// but first we need to normalize incoming data
|
|
|
|
/** @var string */
|
|
public $name;
|
|
|
|
/** @var string */
|
|
public $description;
|
|
|
|
/** @var string */
|
|
public $type;
|
|
|
|
/** @var bool */
|
|
public $required;
|
|
|
|
/** @var mixed */
|
|
public $example;
|
|
|
|
public array $enumValues = [];
|
|
|
|
/** @var bool */
|
|
public $nullable;
|
|
}
|