/**
  * {@inheritdoc}
  */
 public function reverseTransform($value)
 {
     if (null === $value) {
         return null;
     }
     try {
         return Version::fromString($value);
     } catch (\InvalidArgumentException $exception) {
         throw new TransformationFailedException($exception->getMessage());
     }
 }
 /**
  * {@inheritdoc}
  */
 public function convertToPHPValue($value)
 {
     return $value !== null ? Version::fromString($value) : null;
 }