public function serialize(VisitorInterface $visitor, ?UuidInterface $uuid, Type $type, Context $context): ?string
    {
        if (null === $uuid) {
            return $visitor->visitNull(null, Type::null(), $context);
        }

        return $visitor->visitString($uuid->toString(), $type, $context);
    }
public function serialize(VisitorInterface $visitor, ?UuidInterface $uuid, Type $type, Context $context): ?string
    {
        if (null === $uuid) {
            return $visitor->visitNull(null, Type::null(), $context);
        }

        return $visitor->visitString($uuid->toString(), $type, $context);
    }
public function serialize ( VisitorInterface $ visitor , ? UuidInterface $ uuid , Type $ type , Context $ context ) : ? string { if ( null === $ uuid ) { return $ visitor -> visitNull ( null , Type :: null ( ) , $ context ) ; } return $ visitor -> visitString ( $ uuid -> toString ( ) , $ type , $ context ) ; }
Serializes an Uuid object into a string.
Serializes an Uuid object into a string .