->
set('payload', ':payload'
) ->
set('customer_id', 'NULL'
) ->
set('updated_at', ':updatedAt'
) ->
where('customer_id = :customerId'
) ->
setParameter('updatedAt',
(new \
DateTime())->
format(Defaults::STORAGE_DATE_TIME_FORMAT
)) ->
setParameter('payload',
json_encode($revokeParams)) ->
setParameter('customerId', Uuid::
fromHexToBytes($customerId));
// keep tokens valid, which are given in $preserveTokens
if ($preserveTokens) { $qb ->
andWhere($qb->
expr()->
notIn('token', ':preserveTokens'
)) ->
setParameter('preserveTokens',
$preserveTokens, ArrayParameterType::STRING
);
} $qb->
executeStatement();
} /**
* @param list<array<string, mixed>> $data
*
* @return array<string, mixed>|null
*/