PHP Interface LukePOLO\LaraCart\Contracts\CouponContract

Exibir arquivo Open project: lukepolo/laracart

Public Methods

Method Description
__construct ( $code, $value ) CouponContract constructor.
discount ( ) : string Gets the discount amount.
displayValue ( ) : mixed Displays the type of value it is for the user.

Method Details

__construct() public method

CouponContract constructor.
public __construct ( $code, $value )
$code
$value

discount() public method

Gets the discount amount.
public discount ( ) : string
return string

displayValue() public method

Displays the type of value it is for the user.
public displayValue ( ) : mixed
return mixed