WIP : Refactor contraint/rule becomes conditions (more generic)

This commit is contained in:
gmorel
2013-09-25 16:36:14 +02:00
parent d6172f23cf
commit b7851b2d54
41 changed files with 1387 additions and 3637 deletions

View File

@@ -30,23 +30,23 @@ use Thelia\Log\Tlog;
* Date: 8/19/13
* Time: 3:24 PM
*
* Thrown when a Rule is badly implemented
* Thrown when a Condition is badly implemented
*
* @package Coupon
* @package Condition
* @author Guillaume MOREL <gmorel@openstudio.fr>
*
*/
class InvalidRuleException extends \RuntimeException
class InvalidConditionException extends \RuntimeException
{
/**
* InvalidConditionOperatorException thrown when a Rule is badly implemented
* InvalidConditionOperatorException thrown when a Condition is badly implemented
*
* @param string $className Class name
*/
public function __construct($className)
{
$message = 'Invalid Rule given to ' . $className;
$message = 'Invalid Condition given to ' . $className;
Tlog::getInstance()->addError($message);
parent::__construct($message);