function IntlCaster::castIntlTimeZone
File
-
vendor/
symfony/ var-dumper/ Caster/ IntlCaster.php, line 111
Class
- IntlCaster
- @author Nicolas Grekas <p@tchwork.com> @author Jan Schädlich <jan.schaedlich@sensiolabs.de>
Namespace
Symfony\Component\VarDumper\CasterCode
public static function castIntlTimeZone(\IntlTimeZone $c, array $a, Stub $stub, bool $isNested) : array {
$a += [
Caster::PREFIX_VIRTUAL . 'display_name' => $c->getDisplayName(),
Caster::PREFIX_VIRTUAL . 'id' => $c->getID(),
Caster::PREFIX_VIRTUAL . 'raw_offset' => $c->getRawOffset(),
];
if ($c->useDaylightTime()) {
$a += [
Caster::PREFIX_VIRTUAL . 'dst_savings' => $c->getDSTSavings(),
];
}
return self::castError($c, $a);
}