1 | <?php |
||
9 | class Select extends NamedElement |
||
10 | { |
||
11 | protected $type = 'select'; |
||
12 | |||
13 | protected $options = []; |
||
14 | |||
15 | protected $optionsLabelAttribute; |
||
16 | |||
17 | protected $optionsValueAttribute; |
||
18 | |||
19 | protected $size = ''; |
||
20 | |||
21 | public function __construct($name, $title, $options) |
||
26 | |||
27 | public function getSize() |
||
31 | |||
32 | public function setSize($value) |
||
38 | |||
39 | public function getValue() |
||
43 | |||
44 | /** |
||
45 | * @return \Illuminate\Support\Collection |
||
46 | */ |
||
47 | public function getOptions() |
||
73 | |||
74 | /** |
||
75 | * @param mixed $options |
||
76 | * |
||
77 | * @return $this |
||
78 | */ |
||
79 | public function setOptions($options) |
||
85 | |||
86 | /** |
||
87 | * @param Model|string $options |
||
88 | * |
||
89 | * @return array |
||
90 | */ |
||
91 | protected function setOptionsFromModel($options) |
||
118 | |||
119 | /** |
||
120 | * 获取 options 标题字段 |
||
121 | * |
||
122 | * @return string |
||
123 | */ |
||
124 | public function getOptionsLabelAttribute() |
||
128 | |||
129 | /** |
||
130 | * 设置 options 标题字段 |
||
131 | * |
||
132 | * @param string $value |
||
133 | * |
||
134 | * @return $this |
||
135 | */ |
||
136 | public function setOptionsLabelAttribute($value) |
||
142 | |||
143 | /** |
||
144 | * 获取 options value 字段 |
||
145 | * |
||
146 | * @return string |
||
147 | */ |
||
148 | public function getOptionsValueAttribute() |
||
152 | |||
153 | /** |
||
154 | * 设置 options value 字段 |
||
155 | * |
||
156 | * @param string $value |
||
157 | * |
||
158 | * @return $this |
||
159 | */ |
||
160 | public function setOptionsValueAttribute($value) |
||
166 | |||
167 | public function toArray() |
||
174 | } |
||
175 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..