@@ -33,6 +33,9 @@ class Column extends AbstractAsset
33
33
34
34
protected bool $ _autoincrement = false ;
35
35
36
+ /** @var list<string> */
37
+ protected array $ _values = [];
38
+
36
39
/** @var array<string, mixed> */
37
40
protected array $ _platformOptions = [];
38
41
@@ -231,22 +234,41 @@ public function getComment(): string
231
234
return $ this ->_comment ;
232
235
}
233
236
237
+ /**
238
+ * @param list<string> $values
239
+ *
240
+ * @return $this
241
+ */
242
+ public function setValues (array $ values ): static
243
+ {
244
+ $ this ->_values = $ values ;
245
+
246
+ return $ this ;
247
+ }
248
+
249
+ /** @return list<string> */
250
+ public function getValues (): array
251
+ {
252
+ return $ this ->_values ;
253
+ }
254
+
234
255
/** @return array<string, mixed> */
235
256
public function toArray (): array
236
257
{
237
258
return array_merge ([
238
- 'name ' => $ this ->_name ,
239
- 'type ' => $ this ->_type ,
240
- 'default ' => $ this ->_default ,
241
- 'notnull ' => $ this ->_notnull ,
242
- 'length ' => $ this ->_length ,
243
- 'precision ' => $ this ->_precision ,
244
- 'scale ' => $ this ->_scale ,
245
- 'fixed ' => $ this ->_fixed ,
246
- 'unsigned ' => $ this ->_unsigned ,
247
- 'autoincrement ' => $ this ->_autoincrement ,
259
+ 'name ' => $ this ->_name ,
260
+ 'type ' => $ this ->_type ,
261
+ 'default ' => $ this ->_default ,
262
+ 'notnull ' => $ this ->_notnull ,
263
+ 'length ' => $ this ->_length ,
264
+ 'precision ' => $ this ->_precision ,
265
+ 'scale ' => $ this ->_scale ,
266
+ 'fixed ' => $ this ->_fixed ,
267
+ 'unsigned ' => $ this ->_unsigned ,
268
+ 'autoincrement ' => $ this ->_autoincrement ,
248
269
'columnDefinition ' => $ this ->_columnDefinition ,
249
- 'comment ' => $ this ->_comment ,
270
+ 'comment ' => $ this ->_comment ,
271
+ 'values ' => $ this ->_values ,
250
272
], $ this ->_platformOptions );
251
273
}
252
274
}
0 commit comments