TIC\FormBundle\Form\DataTransformer\StringToTimeTransformer::reverseTransform
Transforms a DateTime object into a time string with the configured format and timezone.
Signature
public function reverseTransform(DateTimeInterface
$dateTime )
Parameters
$dateTime— object- A DateTimeInterface object
Returns
- string
- A value as produced by PHP's date() function
Errors/Exceptions
-
TransformationFailedException - If the given value is not a \DateTimeInterface