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