Symfony\Component\Form\Extension\Core\DataTransformer\DateTimeToArrayTransformer::__construct
Constructor.
Signature
public function __construct([string
$inputTimezone = null,
[string
$outputTimezone = null,
[array
$fields = null,
[Boolean
$pad = false]]]] )
Parameters
$inputTimezone
— string- The input timezone
$outputTimezone
— string- The output timezone
$fields
— array- The date fields
$pad
— object- Whether to use padding
Errors/Exceptions
-
UnexpectedTypeException
- if a timezone is not a string