File: D:/HostingSpaces/SBogers10/conmeq.komma.pro/app/Komma/Shop/Cart/HasCouponCodesInterface.php
<?php
namespace App\Komma\Shop\Cart;
/**
* Defines that the implementor of this interface has coupon codes.
* This does not mean that they are valid. Validation is done via the discountService.
*
* Interface HasCouponCodesInterface
* @package App\Komma\Shop\Cart
*/
interface HasCouponCodesInterface
{
/**
* Adds a coupon code. Notice that this does not mean that it is valid.
* Validation is done via the DiscountServiceInterface. Returns true if
* it was added. false if not
*
* @param string $code
* @return mixed
*/
public function addCouponCode(string $code): bool;
/**
* Removes a coupon code and returns true if it was removed and false if not.
*
* @param string $code
* @return bool
*/
public function removeCouponCode(string $code):bool;
/**
* Return all coupon codes;
*
* @return string[];
*/
public function getCouponCodes():array;
}