Collection class
Framework\Debug\Collection
Class Collection.
Defined in libraries/debug/src/Collection.php
Properties #
- $name
- -
- $collectors
- -
- $actions
- -
- $icon
- -
- $iconPath
- -
$name
protected string $name
$collectors
protected array $collectors = array (
)
$actions
protected array $actions = array (
)
$icon
protected string $icon = ''
$iconPath
protected string $iconPath
Methods #
- __construct()
- -
- addAction()
- -
- addCollector()
- -
- getActions()
- -
- getActivities()
- -
- getCollectors()
- -
- getIcon()
- -
- getName()
- -
- getSafeName()
- -
- hasCollectors()
- -
- hasIcon()
- -
- setIcon()
- -
- prepare()
- -
__construct()
public function __construct(string $name)
Parameters
- string $name
addAction()
public function addAction(string $action): static
Parameters
- string $action
Returns
static
addCollector()
public function addCollector(\Framework\Debug\Collector $collector): static
Parameters
- \Framework\Debug\Collector $collector
Returns
static
getActions()
public function getActions(): array
Returns
array
getActivities()
public function getActivities(): array
Returns
array
getCollectors()
public function getCollectors(): array
Returns
array
getIcon()
public function getIcon(): string
Returns
string
getName()
public function getName(): string
Returns
string
getSafeName()
public function getSafeName(): string
Returns
string
hasCollectors()
public function hasCollectors(): bool
Returns
bool
hasIcon()
public function hasIcon(): bool
Returns
bool
setIcon()
public function setIcon(string $icon): static
Parameters
- string $icon
Returns
static
prepare()
protected function prepare(): void
Returns
void