PHP 클래스 LukePOLO\LaraCart\Tests\Coupons\Fixed

상속: implements LukePOLO\LaraCart\Contracts\CouponContract, use trait LukePOLO\LaraCart\Traits\CouponTrait
파일 보기 프로젝트 열기: lukepolo/laracart

공개 프로퍼티들

프로퍼티 타입 설명
$code
$value

공개 메소드들

메소드 설명
__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.

메소드 상세

__construct() 공개 메소드

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

discount() 공개 메소드

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
리턴 string

displayValue() 공개 메소드

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

프로퍼티 상세

$code 공개적으로 프로퍼티

public $code

$value 공개적으로 프로퍼티

public $value