SetItemRelCollectionTrait
Owned collection of a `ProductSet`: the set composition items (set, member and piece count, owned FK in the PK, orphan removal).
Tags
Table of Contents
Properties
- $setItems : Collection<int, TSetItemRel>
Methods
- addSetItem() : $this
- clearSetItems() : $this
- getSetItems() : Collection<int, TSetItemRel>
- removeSetItem() : $this
- setItemCollectionInit() : void
- setSetItems() : $this
Properties
$setItems
protected
Collection<int, TSetItemRel>
$setItems
Methods
addSetItem()
public
addSetItem(TSetItemRel $setItem) : $this
Parameters
- $setItem : TSetItemRel
Return values
$thisclearSetItems()
public
clearSetItems() : $this
Return values
$thisgetSetItems()
public
getSetItems() : Collection<int, TSetItemRel>
Return values
Collection<int, TSetItemRel>removeSetItem()
public
removeSetItem(TSetItemRel $setItem) : $this
Parameters
- $setItem : TSetItemRel
Return values
$thissetItemCollectionInit()
public
setItemCollectionInit() : void
setSetItems()
public
setSetItems(Collection<int, TSetItemRel>|array<int, TSetItemRel> $setItems) : $this
Parameters
- $setItems : Collection<int, TSetItemRel>|array<int, TSetItemRel>