LukePOLO\LaraCart\Tests\Coupons\Fixed::discount PHP Method

discount() public method

Gets the discount amount.
public discount ( $throwErrors = false ) : string
$throwErrors boolean this allows us to capture errors in our code if we wish, that way we can spit out why the coupon has failed
return string
    public function discount($throwErrors = false)
    {
        throw new CouponException('Sorry, you must have at least 100 dollars!');
    }