TIC\FormBundle\Form\DataTransformer\StringToTimeTransformer::transform
Transforms a time string in the configured timezone into a DateTime object.
Signature
public function transform(string
$value )
Parameters
$value— string- A value as produced by PHP's date() function
Returns
- DateTime|null
- An instance of \DateTime
Errors/Exceptions
-
TransformationFailedException - If the given value is not a string,