{ } public function getDecorated(): AbstractCartPersister
{ throw new DecorationPatternException(self::
class);
} public function load(string
$token, SalesChannelContext
$context): Cart
{ // @deprecated tag:v6.6.0 - remove else part
if ($this->
payloadExists()) { $content =
$this->connection->
fetchAssociative( '#cart-persister::load
SELECT `cart`.`payload`, `cart`.`rule_ids`, `cart`.`compressed` FROM cart WHERE `token` = :token',
['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] );
}