\Symfony\Component\VarDumper\CasterDateCaster

Casts DateTimeInterface related classes to array representation.

Summary

Methods
Properties
Constants
castDateTime()
castInterval()
castTimeZone()
castPeriod()
No public properties found
PERIOD_LIMIT
No protected methods found
No protected properties found
N/A
formatInterval()
formatDateTime()
formatSeconds()
No private properties found
N/A

Constants

PERIOD_LIMIT

PERIOD_LIMIT = 3

Methods

castDateTime()

castDateTime(\DateTimeInterface  $d, array  $a, \Symfony\Component\VarDumper\Cloner\Stub  $stub, mixed  $isNested, mixed  $filter) : mixed

Parameters

\DateTimeInterface $d
array $a
\Symfony\Component\VarDumper\Cloner\Stub $stub
mixed $isNested
mixed $filter

Returns

mixed —

castInterval()

castInterval(\DateInterval  $interval, array  $a, \Symfony\Component\VarDumper\Cloner\Stub  $stub, mixed  $isNested, mixed  $filter) : mixed

Parameters

\DateInterval $interval
array $a
\Symfony\Component\VarDumper\Cloner\Stub $stub
mixed $isNested
mixed $filter

Returns

mixed —

castTimeZone()

castTimeZone(\DateTimeZone  $timeZone, array  $a, \Symfony\Component\VarDumper\Cloner\Stub  $stub, mixed  $isNested, mixed  $filter) : mixed

Parameters

\DateTimeZone $timeZone
array $a
\Symfony\Component\VarDumper\Cloner\Stub $stub
mixed $isNested
mixed $filter

Returns

mixed —

castPeriod()

castPeriod(\DatePeriod  $p, array  $a, \Symfony\Component\VarDumper\Cloner\Stub  $stub, mixed  $isNested, mixed  $filter) : mixed

Parameters

\DatePeriod $p
array $a
\Symfony\Component\VarDumper\Cloner\Stub $stub
mixed $isNested
mixed $filter

Returns

mixed —

formatInterval()

formatInterval(\DateInterval  $i) : string

Parameters

\DateInterval $i

Returns

string —

formatDateTime()

formatDateTime(\DateTimeInterface  $d, string  $extra = '') : string

Parameters

\DateTimeInterface $d
string $extra

Returns

string —

formatSeconds()

formatSeconds(string  $s, string  $us) : string

Parameters

string $s
string $us

Returns

string —