1 | <?php |
||
14 | class Parameter extends AbstractModel implements Arrayable { |
||
15 | |||
16 | use RefPart; |
||
17 | use DescriptionPart; |
||
18 | use SchemaPart; |
||
19 | use TypePart; |
||
20 | use ItemsPart; |
||
21 | use RequiredPart; |
||
22 | use ExtensionPart; |
||
23 | |||
24 | /** @var string */ |
||
25 | private $name; |
||
26 | |||
27 | /** @var string */ |
||
28 | private $in; |
||
29 | |||
30 | /** @var bool */ |
||
31 | private $allowEmptyValue = false; |
||
32 | |||
33 | 5 | public function __construct($contents = []) { |
|
36 | |||
37 | 5 | private function parse($contents = []) { |
|
53 | |||
54 | 5 | public function toArray() { |
|
58 | |||
59 | /** |
||
60 | * |
||
61 | * @return string |
||
62 | */ |
||
63 | 1 | public function getName() { |
|
66 | |||
67 | /** |
||
68 | * |
||
69 | * @param string $name |
||
70 | */ |
||
71 | 1 | public function setName($name) { |
|
75 | |||
76 | /** |
||
77 | * |
||
78 | * @return string |
||
79 | */ |
||
80 | 1 | public function getIn() { |
|
83 | |||
84 | /** |
||
85 | * |
||
86 | * @param string $in |
||
87 | */ |
||
88 | 1 | public function setIn($in) { |
|
92 | |||
93 | /** |
||
94 | * |
||
95 | * @return bool |
||
96 | */ |
||
97 | public function getAllowEmptyValue() { |
||
100 | |||
101 | /** |
||
102 | * Sets the ability to pass empty-valued parameters. This is valid only for either `query` or |
||
103 | * `formData` parameters and allows you to send a parameter with a name only or an empty value. |
||
104 | * Default value is `false`. |
||
105 | * |
||
106 | * @param bool $allowEmptyValue |
||
107 | */ |
||
108 | public function setAllowEmptyValue($allowEmptyValue) { |
||
112 | |||
113 | } |
||
114 |