PHP Class LukePOLO\LaraCart\Tests\Coupons\Fixed

Inheritance: implements LukePOLO\LaraCart\Contracts\CouponContract, use trait LukePOLO\LaraCart\Traits\CouponTrait
Datei anzeigen Open project: lukepolo/laracart

Public Properties

Property Type Description
$code
$value

Public Methods

Method Description
__construct ( $code, $value, array $options = [] ) Fixed constructor.
discount ( $throwErrors = false ) : string Gets the discount amount.
displayValue ( null $locale = null, null $internationalFormat = null ) : string Displays the value in a money format.

Method Details

__construct() public method

Fixed constructor.
public __construct ( $code, $value, array $options = [] )
$code
$value
$options array

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

displayValue() public method

Displays the value in a money format.
public displayValue ( null $locale = null, null $internationalFormat = null ) : string
$locale null
$internationalFormat null
return string

Property Details

$code public_oe property

public $code

$value public_oe property

public $value