Added clear method.

This commit is contained in:
Franck Allimant
2014-06-17 00:34:57 +02:00
parent ee47488cc8
commit 2edfb0b389
2 changed files with 12 additions and 0 deletions

View File

@@ -499,4 +499,11 @@ abstract class CouponAbstract implements CouponInterface
return $effects;
}
/**
* @inheritdoc
*/
public function clear() {
// Does nothing. Override this function as needed.
}
}

View File

@@ -239,4 +239,9 @@ interface CouponInterface
*/
public function getEffects($data);
/**
* Clear all the data the coupon may have stored, called after an order is completed.
*/
public function clear();
}