Total Complexity | 2 |
Total Lines | 52 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class ConvertCaseTransformer extends Transformer |
||
13 | { |
||
14 | /** |
||
15 | * |
||
16 | */ |
||
17 | const CONVERT_CASE_MODE_UPPER = MB_CASE_UPPER; |
||
18 | |||
19 | /** |
||
20 | * |
||
21 | */ |
||
22 | const CONVERT_CASE_MODE_LOWER = MB_CASE_LOWER; |
||
23 | |||
24 | /** |
||
25 | * |
||
26 | */ |
||
27 | const CONVERT_CASE_MODE_TITLE = MB_CASE_TITLE; |
||
28 | |||
29 | |||
30 | /** |
||
31 | * @var array |
||
32 | */ |
||
33 | protected array $columns = []; |
||
34 | |||
35 | /** |
||
36 | * @var string |
||
37 | */ |
||
38 | protected string $encoding = "UTF-8"; |
||
39 | |||
40 | /** |
||
41 | * @var int |
||
42 | */ |
||
43 | protected int $mode = self::CONVERT_CASE_MODE_LOWER; |
||
44 | |||
45 | /** |
||
46 | * @var array|string[] |
||
47 | */ |
||
48 | protected array $availableOptions = [ "columns", "encoding", "mode" ]; |
||
49 | |||
50 | /** |
||
51 | * @param Row $row |
||
52 | * @return mixed|void |
||
53 | */ |
||
54 | public function transform ( Row $row ) |
||
67 |