} try { new \
DateTimeImmutable($time);
} catch (\Exception
$e) { $io->
error(sprintf('Invalid timestamp "%s": %s',
$time,
str_replace('DateTimeImmutable::__construct(): ', '',
$e->
getMessage())));
return 1;
} $create =
fn (): Uuid =>
$this->factory->
timeBased($node)->
create(new \
DateTimeImmutable($time));
break;
case null !==
$name:
if ($namespace && !\
in_array($namespace,
['dns', 'url', 'oid', 'x500'
], true
)) { try { $namespace = Uuid::
fromString($namespace);
} catch (\InvalidArgumentException
$e) { $io->
error(sprintf('Invalid namespace "%s": %s',
$namespace,
$e->
getMessage()));
return 1;
} }