WIP Coupon
Refactor
This commit is contained in:
@@ -23,6 +23,9 @@
|
||||
|
||||
namespace Thelia\Coupon;
|
||||
|
||||
use Thelia\Coupon\Type\CouponInterface;
|
||||
use Thelia\Model\Coupon;
|
||||
|
||||
/**
|
||||
* Created by JetBrains PhpStorm.
|
||||
* Date: 8/19/13
|
||||
@@ -93,4 +96,22 @@ interface CouponAdapterInterface
|
||||
*/
|
||||
public function getCurrentCoupons();
|
||||
|
||||
/**
|
||||
* Find one Coupon in the database from its code
|
||||
*
|
||||
* @param string $code Coupon code
|
||||
*
|
||||
* @return Coupon
|
||||
*/
|
||||
public function findOneCouponByCode($code);
|
||||
|
||||
/**
|
||||
* Save a Coupon in the database
|
||||
*
|
||||
* @param CouponInterface $coupon Coupon
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function saveCoupon(CouponInterface $coupon);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user