CoolCMS API

VoucherCollectionTrait

Tags
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

Properties

Methods

addVoucher()

public addVoucher(TVoucher $voucher) : $this
Parameters
$voucher : TVoucher
Return values
$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
Return values
$this

setVouchers()

public setVouchers(Collection<int, TVoucher>|array<int, TVoucher> $vouchers) : $this
Parameters
$vouchers : Collection<int, TVoucher>|array<int, TVoucher>
Return values
$this
On this page

Search results