. */ /* */ /*************************************************************************************/ namespace Thelia\Coupon; /** * Created by JetBrains PhpStorm. * Date: 8/19/13 * Time: 3:24 PM * * Assist in writing a CouponInterface * * @package Coupon * @author Guillaume MOREL * */ abstract class CouponAbstract implements CouponInterface { /** @var RuleOrganizerInterface */ protected $organizer = null; /** * Return Coupon code (ex: XMAS) * * @return string */ public function getCode() { // TODO: Implement getCode() method. } /** * Return Coupon title (ex: Coupon for XMAS) * * @return string */ public function getTitle() { // TODO: Implement getTitle() method. } /** * Return Coupon short description * * @return string */ public function getShortDescription() { // TODO: Implement getShortDescription() method. } /** * Return Coupon description * * @return string */ public function getDescription() { // TODO: Implement getDescription() method. } /** * If Coupon is cumulative or prevent any accumulation * If is cumulative you can sum Coupon effects * If not cancel all other Coupon and take the last given * * @return string */ public function isCumulative() { // TODO: Implement isCumulative() method. } /** * If Coupon is removing Checkout Postage * * @return bool */ public function isRemovingPostage() { // TODO: Implement isRemovingPostage() method. } /** * Return effects generated by the coupon * * @return \Closure */ public function getEffect() { // TODO: Implement getEffect() method. } }