return self::
castError($c,
$a);
} /**
* @return array
*/
public static function castIntlDateFormatter(\IntlDateFormatter
$c, array
$a, Stub
$stub, bool
$isNested, int
$filter = 0
) { $a +=
[ Caster::PREFIX_VIRTUAL.'locale' =>
$c->
getLocale(),
Caster::PREFIX_VIRTUAL.'pattern' =>
$c->
getPattern(),
Caster::PREFIX_VIRTUAL.'calendar' =>
$c->
getCalendar(),
Caster::PREFIX_VIRTUAL.'time_zone_id' =>
$c->
getTimeZoneId(),
Caster::PREFIX_VIRTUAL.'time_type' =>
$c->
getTimeType(),
Caster::PREFIX_VIRTUAL.'date_type' =>
$c->
getDateType(),
Caster::PREFIX_VIRTUAL.'calendar_object'
=> ($filter & Caster::EXCLUDE_VERBOSE
) ?
new CutStub($c->
getCalendarObject()) :
$c->
getCalendarObject(),
Caster::PREFIX_VIRTUAL.'time_zone'
=> ($filter & Caster::EXCLUDE_VERBOSE
) ?
new CutStub($c->
getTimeZone()) :
$c->
getTimeZone(),
];
return self::
castError($c,
$a);
} private static function castError(object
$c, array
$a): array
{