JEMBOT MAWOT Bypass Shell
<?php
/**
* Mollie https://www.mollie.nl
*
* @author Mollie B.V. <info@mollie.nl>
* @copyright Mollie B.V.
* @license https://github.com/mollie/PrestaShop/blob/master/LICENSE.md
*
* @see https://github.com/mollie/PrestaShop
* @codingStandardsIgnoreStart
*/
namespace Mollie\Repository;
use Db;
use Mollie\Shared\Infrastructure\Repository\AbstractRepository;
use OrderCartRule;
if (!defined('_PS_VERSION_')) {
exit;
}
final class OrderCartRuleRepository extends AbstractRepository implements OrderCartRuleRepositoryInterface
{
public function __construct()
{
parent::__construct(OrderCartRule::class);
}
/**
* {@inheritDoc}
*/
public function decreaseCustomerUsedCartRuleQuantity($orderId, $cartRuleId)
{
return (bool) Db::getInstance()->delete(
'order_cart_rule',
'id_order= ' . (int) $orderId . ' AND id_cart_rule= ' . (int) $cartRuleId,
1
);
}
}
xxxxx1.0, XXX xxxx