public static function castUuid(Uuid $uuid, array $a, Stub $stub, bool $isNested) : array { $a[Caster::PREFIX_VIRTUAL . 'toBase58'] = $uuid->toBase58(); $a[Caster::PREFIX_VIRTUAL . 'toBase32'] = $uuid->toBase32(); // symfony/uid >= 5.3 if (method_exists($uuid, 'getDateTime')) { $a[Caster::PREFIX_VIRTUAL . 'time'] = $uuid->getDateTime() ->format('Y-m-d H:i:s.u \\U\\T\\C'); } return $a; }