ItemRelations
Relations between items. Parent and childs
Table of Contents
Methods
- __construct() : mixed
- addRelation() : bool
- toArray() : array<string|int, mixed>
Methods
__construct()
public
__construct(Collection $items) : mixed
Parameters
- $items : Collection
addRelation()
public
addRelation(string $parentCode, array<string|int, mixed> $childCodes) : bool
Parameters
- $parentCode : string
- $childCodes : array<string|int, mixed>
Return values
booltoArray()
public
toArray() : array<string|int, mixed>