ResponseField.php 515 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace Knuckles\Camel\Extraction;
  3. use Knuckles\Camel\BaseDTO;
  4. class ResponseField extends BaseDTO
  5. {
  6. // TODO make this extend Parameter, so we can have strong types and a unified API
  7. // but first we need to normalize incoming data
  8. /** @var string */
  9. public $name;
  10. /** @var string */
  11. public $description;
  12. /** @var string */
  13. public $type;
  14. /** @var boolean */
  15. public $required;
  16. /** @var mixed */
  17. public $example;
  18. public array $enumValues = [];
  19. }