@@ 272-279 (lines=8) @@ | ||
269 | // |
|
270 | $covers = []; |
|
271 | $cover = []; |
|
272 | foreach ($this->columns as $column) { |
|
273 | $name = $column['name']; |
|
274 | if ($column['length']) { |
|
275 | $name .= '(' . $column['length'] . ')'; |
|
276 | } |
|
277 | $cover[] = $name; |
|
278 | $covers[] = $cover; |
|
279 | } |
|
280 | return $covers; |
|
281 | } |
|
282 | ||
@@ 293-299 (lines=7) @@ | ||
290 | public function getColumns() |
|
291 | { |
|
292 | $columns = []; |
|
293 | foreach ($this->columns as $column) { |
|
294 | $name = $column['name']; |
|
295 | if ($column['length']) { |
|
296 | $name .= '(' . $column['length'] . ')'; |
|
297 | } |
|
298 | $columns[] = $name; |
|
299 | } |
|
300 | return $columns; |
|
301 | } |
|
302 |