ComponentRepository
in package
implements
Countable
Unique collection of {@see Component}.
Tags
Table of Contents
Interfaces
- Countable
Properties
Methods
- __construct() : mixed
- addItems() : $this
- count() : int
- findItem() : array<string|int, Component>
- getItems() : array<string|int, Component>
Properties
$items
private
array<string|int, Component>
$items
= []
Tags
Methods
__construct()
public
__construct(Component ...$items) : mixed
Parameters
- $items : Component
addItems()
public
addItems(Component ...$items) : $this
Parameters
- $items : Component
Return values
$thiscount()
public
count() : int
Tags
Return values
intfindItem()
public
findItem(string $name, string|null $group) : array<string|int, Component>
Parameters
- $name : string
- $group : string|null
Tags
Return values
array<string|int, Component>getItems()
public
getItems() : array<string|int, Component>