VoucherCollectionTrait
-
template
-
Table of Contents
Properties
-
$vouchers
: Collection<int, TVoucher>
Methods
-
addVoucher()
: $this
-
clearVouchers()
: $this
-
getVoucher()
: TVoucher|null
-
getVouchers()
: Collection<int, TVoucher>
-
removeVoucher()
: $this
-
setVouchers()
: $this
-
voucherCollectionInit()
: void
$vouchers
protected
Collection<int, TVoucher>
$vouchers
addVoucher()
public
addVoucher(TVoucher $voucher) : $this
Parameters
-
$voucher
: TVoucher
-
clearVouchers()
public
clearVouchers() : $this
getVoucher()
public
getVoucher(int $voucherId) : TVoucher|null
Parameters
-
$voucherId
: int
-
Return values
TVoucher|null
getVouchers()
public
getVouchers() : Collection<int, TVoucher>
Return values
Collection<int, TVoucher>
removeVoucher()
public
removeVoucher(TVoucher $voucher) : $this
Parameters
-
$voucher
: TVoucher
-
setVouchers()
public
setVouchers(Collection<int, TVoucher>|array<int, TVoucher> $vouchers) : $this
Parameters
-
$vouchers
: Collection<int, TVoucher>|array<int, TVoucher>
-
voucherCollectionInit()
public
voucherCollectionInit() : void