| Total Complexity | 7 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | final class EmailsToArrayTransformer implements DataTransformerInterface |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * Transforms an array of emails into a string like '[email protected],[email protected]' |
||
| 19 | */ |
||
| 20 | public function transform($arr): string |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Transforms a string of emails into an array of emails |
||
| 31 | * |
||
| 32 | * @throws StringsException |
||
| 33 | * @throws TransformationFailedException |
||
| 34 | */ |
||
| 35 | public function reverseTransform($str): array |
||
| 48 |