Final Class Yiisoft\Yii\Debug\Collector\TimelineCollector
| Inheritance | Yiisoft\Yii\Debug\Collector\TimelineCollector |
|---|---|
| Implements | Yiisoft\Yii\Debug\Collector\CollectorInterface |
| Uses Traits | Yiisoft\Yii\Debug\Collector\CollectorTrait |
Public Methods
Method Details
| public void collect ( Yiisoft\Yii\Debug\Collector\CollectorInterface $collector, string|integer $reference, mixed $data ) | ||
| $collector | Yiisoft\Yii\Debug\Collector\CollectorInterface | |
| $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;
}
Signup or Login in order to comment.