@@ 50-58 (lines=9) @@ | ||
47 | * |
|
48 | * @return string |
|
49 | */ |
|
50 | public function render() |
|
51 | { |
|
52 | $results = ''; |
|
53 | foreach ($this->toArray() as $column => $attributes) { |
|
54 | $results .= $this->createField($column, $attributes); |
|
55 | } |
|
56 | ||
57 | return $results; |
|
58 | } |
|
59 | ||
60 | /** |
|
61 | * Convert string migration to array. |
|
@@ 180-188 (lines=9) @@ | ||
177 | * |
|
178 | * @return string |
|
179 | */ |
|
180 | public function down() |
|
181 | { |
|
182 | $results = ''; |
|
183 | foreach ($this->toArray() as $column => $attributes) { |
|
184 | $results .= $this->createField($column, $attributes, 'remove'); |
|
185 | } |
|
186 | ||
187 | return $results; |
|
188 | } |
|
189 | ||
190 | /** |
|
191 | * Format field to script. |