1 | <?php |
||
7 | class DataArrayTransformer |
||
8 | { |
||
9 | /** |
||
10 | * Transform row data by columns definition. |
||
11 | * |
||
12 | * @param array $row |
||
13 | * @param mixed $columns |
||
14 | * @param string $type |
||
15 | * @return array |
||
16 | */ |
||
17 | public function transform(array $row, $columns, $type = 'printable') |
||
25 | |||
26 | /** |
||
27 | * Transform row column by collection. |
||
28 | * |
||
29 | * @param array $row |
||
30 | * @param \Illuminate\Support\Collection $columns |
||
31 | * @param string $type |
||
32 | * @return array |
||
33 | */ |
||
34 | protected function buildColumnByCollection(array $row, Collection $columns, $type = 'printable') |
||
52 | |||
53 | /** |
||
54 | * Decode content to a readable text value. |
||
55 | * |
||
56 | * @param string $data |
||
57 | * @return string |
||
58 | */ |
||
59 | protected function decodeContent($data) |
||
69 | } |
||
70 |