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