PHP Class LukePOLO\LaraCart\Tests\Coupons\Fixed

Inheritance: implements LukePOLO\LaraCart\Contracts\CouponContract, use trait LukePOLO\LaraCart\Traits\CouponTrait
Afficher le fichier Open project: lukepolo/laracart

Méthodes publiques

Свойство Type Description
$code
$value

Méthodes publiques

Méthode 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 méthode

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

discount() public méthode

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
Résultat string

displayValue() public méthode

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

Property Details

$code public_oe property

public $code

$value public_oe property

public $value