Parameter.php 496 B

1234567891011121314151617181920212223
  1. <?php
  2. namespace Knuckles\Camel\Output;
  3. class Parameter extends \Knuckles\Camel\Extraction\Parameter
  4. {
  5. public string $name;
  6. public ?string $description = null;
  7. public bool $required = false;
  8. public $example = null;
  9. public string $type = 'string';
  10. public array $__fields = [];
  11. public function toArray(): array
  12. {
  13. if (empty($this->exceptKeys)) {
  14. return $this->except('__fields')->toArray();
  15. }
  16. return parent::toArray();
  17. }
  18. }