Final Class Yiisoft\Yii\Debug\Collector\TimelineCollector
| Inheritance | Yiisoft\ |
|---|---|
| Implements | Yiisoft\ |
| Uses Traits | Yiisoft\ |
Public Methods
Method Details
| public void collect ( Yiisoft\ | ||
| $collector | Yiisoft\ |
|
| $reference | string|integer | |
| $data | mixed | |
public function collect(CollectorInterface $collector, string|int $reference, mixed ...$data): void
{
if (!$this->isActive()) {
return;
}
$this->events[] = [microtime(true), $reference, $collector::class, array_values($data)];
}
| public array getCollected ( ) |
public function getCollected(): array
{
if (!$this->isActive()) {
return [];
}
return $this->events;
}
| public void shutdown ( ) |
public function shutdown(): void
{
$this->reset();
$this->isActive = false;
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.