CategoryRelCollectionTrait
Tags
Table of Contents
Properties
- $categoryRels : Collection<int, TCategoryRel>
Methods
- addCategoryRel() : $this
- categoryRelCollectionInit() : void
- getCategories() : array<int, object>
- getCategoryRels() : Collection<int, TCategoryRel>
- removeCategoryRel() : $this
- setCategoryRels() : $this
Properties
$categoryRels
protected
Collection<int, TCategoryRel>
$categoryRels
Methods
addCategoryRel()
public
addCategoryRel(TCategoryRel $categoryRel) : $this
Parameters
- $categoryRel : TCategoryRel
Return values
$thiscategoryRelCollectionInit()
public
categoryRelCollectionInit() : void
getCategories()
public
getCategories() : array<int, object>
Return values
array<int, object> —categories of the rels (a rel without a loaded category is skipped)
getCategoryRels()
public
getCategoryRels() : Collection<int, TCategoryRel>
Return values
Collection<int, TCategoryRel>removeCategoryRel()
public
removeCategoryRel(TCategoryRel $categoryRel) : $this
Parameters
- $categoryRel : TCategoryRel
Return values
$thissetCategoryRels()
public
setCategoryRels(Collection<int, TCategoryRel>|array<int, TCategoryRel> $categoryRels) : $this
Parameters
- $categoryRels : Collection<int, TCategoryRel>|array<int, TCategoryRel>