WIP Coupon

Default Implementation + Unit test in order to validate the chain
- effect
- application field
- condition
This commit is contained in:
gmorel
2013-08-27 13:28:57 +02:00
parent eae86cd797
commit e971179a60
43 changed files with 1184 additions and 617 deletions

View File

@@ -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);
}
}