class CouponConsumeEvent extends ActionEvent

Occurring when a Coupon is consumed

Methods

__set($name, $value)

No description

__get($name)

No description

bindForm( Form $form)

No description

__construct( string $code, float $discount = null, bool $isValid = null, bool $freeShipping = false)

Constructor

setFreeShipping( boolean $freeShipping)

No description

boolean
getFreeShipping()

No description

$this
setCode( string $code)

Set Coupon code

string
getCode()

Get Coupon code

$this
setDiscount( float $discount)

Set total discount given by this coupon

float
getDiscount()

Get total discount given by this coupon

$this
setIsValid( boolean $isValid)

Set if Coupon is valid or if Customer meets coupon conditions

boolean
getIsValid()

Get if Coupon is valid or if Customer meets coupon conditions

Details

in ActionEvent at line 30
__set($name, $value)

Parameters

$name
$value

in ActionEvent at line 35
__get($name)

Parameters

$name

in ActionEvent at line 44
bindForm( Form $form)

Parameters

Form $form

at line 46
__construct( string $code, float $discount = null, bool $isValid = null, bool $freeShipping = false)

Constructor

Parameters

string $code Coupon code
float $discount Total discount given by this coupon
bool $isValid If Coupon is valid or f Customer meets coupon conditions
bool $freeShipping true if coupon offers free shipping

at line 58
setFreeShipping( boolean $freeShipping)

Parameters

boolean $freeShipping

at line 68
boolean getFreeShipping()

Return Value

boolean

at line 80
$this setCode( string $code)

Set Coupon code

Parameters

string $code Coupon code

Return Value

$this

at line 92
string getCode()

Get Coupon code

Return Value

string

at line 104
$this setDiscount( float $discount)

Set total discount given by this coupon

Parameters

float $discount Total discount given by this coupon

Return Value

$this

at line 116
float getDiscount()

Get total discount given by this coupon

Return Value

float

at line 129
$this setIsValid( boolean $isValid)

Set if Coupon is valid or if Customer meets coupon conditions

Parameters

boolean $isValid if Coupon is valid or if Customer meets coupon conditions

Return Value

$this

at line 141
boolean getIsValid()

Get if Coupon is valid or if Customer meets coupon conditions

Return Value

boolean