1 | <?php |
||
12 | class DataTransformer |
||
13 | { |
||
14 | /** |
||
15 | * Transform row data by columns definition. |
||
16 | * |
||
17 | * @param array $row |
||
18 | * @param mixed $columns |
||
19 | * @param string $type |
||
20 | * @return array |
||
21 | */ |
||
22 | public function transform(array $row, $columns, $type = 'printable') |
||
30 | |||
31 | /** |
||
32 | * Transform row column by collection. |
||
33 | * |
||
34 | * @param array $row |
||
35 | * @param \Illuminate\Support\Collection $columns |
||
36 | * @param string $type |
||
37 | * @return array |
||
38 | */ |
||
39 | protected function buildColumnByCollection(array $row, Collection $columns, $type = 'printable') |
||
52 | } |
||
53 |