class DateTimeImmutableToDateTimeTransformer implements DataTransformerInterface
Transforms between a DateTimeImmutable object and a DateTime object.
| mixed | transform(mixed $value) Transforms a DateTimeImmutable into a DateTime object. | |
| mixed | reverseTransform(mixed $value) Transforms a DateTime object into a DateTimeImmutable object. |
Transforms a DateTimeImmutable into a DateTime object.
| mixed | $value | The value in the original representation |
| mixed | The value in the transformed representation |
| TransformationFailedException | If the given value is not a \DateTimeImmutable |
Transforms a DateTime object into a DateTimeImmutable object.
| mixed | $value | The value in the transformed representation |
| mixed | The value in the original representation |
| TransformationFailedException | If the given value is not a \DateTime |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Form/Extension/Core/DataTransformer/DateTimeImmutableToDateTimeTransformer.html