GiftCollectionTrait
-
template
-
Table of Contents
Properties
-
$gifts
: Collection<int, TGift>
Methods
-
addGift()
: $this
-
clearGifts()
: $this
-
getGift()
: TGift|null
-
getGifts()
: Collection<int, TGift>
-
giftCollectionInit()
: void
-
removeGift()
: $this
-
setGifts()
: $this
$gifts
protected
Collection<int, TGift>
$gifts
addGift()
public
addGift(TGift $gift) : $this
Parameters
-
$gift
: TGift
-
clearGifts()
public
clearGifts() : $this
getGift()
public
getGift(int $giftId) : TGift|null
Parameters
-
$giftId
: int
-
getGifts()
public
getGifts() : Collection<int, TGift>
Return values
Collection<int, TGift>
giftCollectionInit()
public
giftCollectionInit() : void
removeGift()
public
removeGift(TGift $gift) : $this
Parameters
-
$gift
: TGift
-
setGifts()
public
setGifts(Collection<int, TGift>|array<int, TGift> $gifts) : $this
Parameters
-
$gifts
: Collection<int, TGift>|array<int, TGift>
-