Total Complexity | 5 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
5 | class ColumnValueList extends ColumnList |
||
6 | { |
||
7 | /** |
||
8 | * {@inheritdoc} |
||
9 | * |
||
10 | * @param array $columns The list of columns to declare |
||
11 | * The key into the array is the name of the column. |
||
12 | * The value is the column value. |
||
13 | */ |
||
14 | public function __invoke(array $columns) |
||
15 | { |
||
16 | foreach ($columns as $name => $value) { |
||
17 | $this->list[] = new Column($this->table, $name, null, $value); |
||
18 | } |
||
19 | } |
||
20 | |||
21 | /** |
||
22 | * {@inheritdoc} |
||
23 | */ |
||
24 | public function generate(): string |
||
37 | } |
||
38 | } |
||
39 |