WIP Coupon
Default Implementation + Unit test in order to validate the chain - effect - application field - condition
This commit is contained in:
@@ -32,7 +32,7 @@ use Thelia\Exception\InvalidRuleException;
|
||||
* Date: 8/19/13
|
||||
* Time: 3:24 PM
|
||||
*
|
||||
* Manage a set of v
|
||||
* Manage a set of CouponRuleInterface
|
||||
*
|
||||
* @package Coupon
|
||||
* @author Guillaume MOREL <gmorel@openstudio.fr>
|
||||
@@ -84,5 +84,15 @@ class CouponRuleCollection
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if there is at least one rule in the collection
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isEmpty()
|
||||
{
|
||||
return isEmpty($this->rules);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user