'token' =>
$token] );
} else { $content =
$this->connection->
fetchAssociative( '#cart-persister::load
SELECT `cart`.`cart` as payload, `cart`.`rule_ids`, 0 as `compressed` FROM cart WHERE `token` = :token',
['token' =>
$token] );
} if (!\
is_array($content)) { throw CartException::
tokenNotFound($token);
} $cart =
$content['compressed'
] ? CacheValueCompressor::
uncompress($content['payload'
]) :
unserialize((string) $content['payload'
]);
if (!
$cart instanceof Cart
) { throw CartException::
deserializeFailed();
} $cart->
setToken($token);
$cart->
setRuleIds(json_decode((string) $content['rule_ids'
], true, 512, \JSON_THROW_ON_ERROR
) ??
[]);