Total Complexity | 4 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class DelimitedArrayListFormatter implements DataFormatterInterface |
||
8 | { |
||
9 | /** |
||
10 | * |
||
11 | */ |
||
12 | protected $delimiter = ', '; |
||
13 | |||
14 | /** |
||
15 | * |
||
16 | */ |
||
17 | 6 | public function __construct(?string $delimiter = null) |
|
18 | { |
||
19 | 6 | $delimiter && $this->delimiter = $delimiter; |
|
20 | 6 | } |
|
21 | |||
22 | /** |
||
23 | * |
||
24 | */ |
||
25 | 3 | public function formatData($value) |
|
28 | } |
||
29 | |||
30 | /** |
||
31 | * |
||
32 | */ |
||
33 | 3 | public function formatInput($value) |
|
36 | } |
||
37 | } |
||
38 |