| Total Complexity | 3 |
| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class ArrayToListDataFormatter implements DataFormatterInterface |
||
| 8 | { |
||
| 9 | protected string $delimiter = ', '; |
||
| 10 | |||
| 11 | 6 | public function __construct(?string $delimiter = null) |
|
| 12 | { |
||
| 13 | 6 | $this->delimiter = $delimiter ?? $this->delimiter; |
|
| 14 | } |
||
| 15 | |||
| 16 | 3 | public function formatData($value) |
|
| 17 | { |
||
| 18 | 3 | return implode($this->delimiter, $value); |
|
| 19 | } |
||
| 20 | |||
| 21 | 3 | public function formatInput($value) |
|
| 24 | } |
||
| 25 | } |
||
| 26 |