1 | <?php |
||
15 | class Parameter extends AbstractModel implements Arrayable |
||
16 | { |
||
17 | use RefPart; |
||
18 | use DescriptionPart; |
||
19 | use SchemaPart; |
||
20 | use TypePart; |
||
21 | use ItemsPart; |
||
22 | use RequiredPart; |
||
23 | use ExtensionPart; |
||
24 | |||
25 | /** @var string */ |
||
26 | private $name; |
||
27 | |||
28 | /** @var string */ |
||
29 | private $in; |
||
30 | |||
31 | /** @var bool */ |
||
32 | private $allowEmptyValue = false; |
||
33 | |||
34 | 5 | public function __construct($contents = []) |
|
38 | |||
39 | 5 | private function parse($contents = []) |
|
56 | |||
57 | 4 | public function toArray() |
|
62 | |||
63 | /** |
||
64 | * @return string |
||
65 | */ |
||
66 | 4 | public function getName() |
|
70 | |||
71 | /** |
||
72 | * @param string $name |
||
73 | */ |
||
74 | 1 | public function setName($name) |
|
80 | |||
81 | /** |
||
82 | * @return string |
||
83 | */ |
||
84 | public function getIn() |
||
88 | |||
89 | /** |
||
90 | * @param string $in |
||
91 | */ |
||
92 | public function setIn($in) |
||
98 | |||
99 | /** |
||
100 | * @return bool |
||
101 | */ |
||
102 | public function getAllowEmptyValue() |
||
106 | |||
107 | /** |
||
108 | * Sets the ability to pass empty-valued parameters. This is valid only for either `query` or |
||
109 | * `formData` parameters and allows you to send a parameter with a name only or an empty value. |
||
110 | * Default value is `false`. |
||
111 | * |
||
112 | * @param bool $allowEmptyValue |
||
113 | */ |
||
114 | public function setAllowEmptyValue($allowEmptyValue) |
||
120 | } |
||
121 |