Added clear method.
This commit is contained in:
@@ -499,4 +499,11 @@ abstract class CouponAbstract implements CouponInterface
|
|||||||
|
|
||||||
return $effects;
|
return $effects;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @inheritdoc
|
||||||
|
*/
|
||||||
|
public function clear() {
|
||||||
|
// Does nothing. Override this function as needed.
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -239,4 +239,9 @@ interface CouponInterface
|
|||||||
*/
|
*/
|
||||||
public function getEffects($data);
|
public function getEffects($data);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clear all the data the coupon may have stored, called after an order is completed.
|
||||||
|
*/
|
||||||
|
public function clear();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user