PHP Interface WellCommerce\Bundle\CouponBundle\Checker\CouponCheckerInterface

Author: Adam Piotrowski ([email protected])
Show file Open project: wellcommerce/wellcommerce Interface Usage Examples

Public Methods

Method Description
getError ( ) : string
isValid ( WellCommerce\Bundle\CouponBundle\Entity\CouponInterface $coupon ) : boolean Checks whether the coupon is valid for use

Method Details

getError() public method

public getError ( ) : string
return string

isValid() public method

Checks whether the coupon is valid for use
public isValid ( WellCommerce\Bundle\CouponBundle\Entity\CouponInterface $coupon ) : boolean
$coupon WellCommerce\Bundle\CouponBundle\Entity\CouponInterface
return boolean