17 lines
563 B
PHP
17 lines
563 B
PHP
<?php
|
|
|
|
namespace KupShop\OrderDiscountBundle\Actions;
|
|
|
|
use KupShop\OrderDiscountBundle\Actions\Frontend\HandlerInterface;
|
|
use KupShop\OrderDiscountBundle\Entity\OrderDiscount;
|
|
use KupShop\OrderingBundle\Entity\Purchase\PurchaseState;
|
|
|
|
interface ActionInterface
|
|
{
|
|
public function applyResult(PurchaseState &$purchaseState, OrderDiscount $orderDiscount, array $data);
|
|
|
|
public function applyMultiple(PurchaseState &$purchaseState, OrderDiscount $orderDiscount, array $data, array $multiplier);
|
|
|
|
public function getFrontendHandler(): ?HandlerInterface;
|
|
}
|