| 1 | <?php | ||
| 11 | final class ArrayToStringTransformer implements DataTransformerInterface | ||
| 12 | { | ||
| 13 | /** | ||
| 14 | * @var string | ||
| 15 | */ | ||
| 16 | private $delimiter; | ||
| 17 | |||
| 18 | /** | ||
| 19 | * @param string $delimiter | ||
| 20 | */ | ||
| 21 | public function __construct($delimiter) | ||
| 25 | |||
| 26 | /** | ||
| 27 | * @param string[]|null $value The value in the original representation | ||
| 28 | * | ||
| 29 | * @return string The value in the transformed representation | ||
| 30 | * | ||
| 31 | * @throws TransformationFailedException When the transformation fails. | ||
| 32 | */ | ||
| 33 | public function transform($value) | ||
| 45 | |||
| 46 | /** | ||
| 47 | * @param string $value The value in the transformed representation | ||
| 48 | * | ||
| 49 | * @return string[] The value in the original representation | ||
| 50 | * | ||
| 51 | * @throws TransformationFailedException When the transformation fails. | ||
| 52 | */ | ||
| 53 | public function reverseTransform($value) | ||
| 69 | } | ||
| 70 |