Method | Description | |
---|---|---|
__construct ( WellCommerce\Bundle\OrderBundle\Repository\OrderRepositoryInterface $orderRepository ) | CouponChecker constructor. | |
getError ( ) : string | ||
isValid ( WellCommerce\Bundle\CouponBundle\Entity\CouponInterface $coupon = null ) : boolean |
Method | Description | |
---|---|---|
isNotExpired ( WellCommerce\Bundle\CouponBundle\Entity\CouponInterface $coupon ) : boolean | Checks whether the coupon is not expired | |
isStartDateValid ( WellCommerce\Bundle\CouponBundle\Entity\CouponInterface $coupon ) : boolean | Checks whether the coupon's start date is valid |
public __construct ( WellCommerce\Bundle\OrderBundle\Repository\OrderRepositoryInterface $orderRepository ) | ||
$orderRepository | WellCommerce\Bundle\OrderBundle\Repository\OrderRepositoryInterface |