DateCaster

class DateCaster

Casts DateTimeInterface related classes to array representation.

Constants

PERIOD_LIMIT

Methods

static castDateTime(DateTimeInterface $d, array $a, Stub $stub, $isNested, $filter)
static castInterval(DateInterval $interval, array $a, Stub $stub, $isNested, $filter)
static castTimeZone(DateTimeZone $timeZone, array $a, Stub $stub, $isNested, $filter)
static castPeriod(DatePeriod $p, array $a, Stub $stub, $isNested, $filter)

Details

static castDateTime(DateTimeInterface $d, array $a, Stub $stub, $isNested, $filter)

Parameters

DateTimeInterface $d
array $a
Stub $stub
$isNested
$filter

static castInterval(DateInterval $interval, array $a, Stub $stub, $isNested, $filter)

Parameters

DateInterval $interval
array $a
Stub $stub
$isNested
$filter

static castTimeZone(DateTimeZone $timeZone, array $a, Stub $stub, $isNested, $filter)

Parameters

DateTimeZone $timeZone
array $a
Stub $stub
$isNested
$filter

static castPeriod(DatePeriod $p, array $a, Stub $stub, $isNested, $filter)

Parameters

DatePeriod $p
array $a
Stub $stub
$isNested
$filter

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/VarDumper/Caster/DateCaster.html