0 follower

Final Class Yiisoft\Yii\Debug\Collector\TimelineCollector

InheritanceYiisoft\Yii\Debug\Collector\TimelineCollector
ImplementsYiisoft\Yii\Debug\Collector\CollectorInterface
Uses TraitsYiisoft\Yii\Debug\Collector\CollectorTrait

Method Details

Hide inherited methods

collect() public method

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)];
}

            
getCollected() public method

public array getCollected ( )

                public function getCollected(): array
{
    if (!$this->isActive()) {
        return [];
    }
    return $this->events;
}

            
getName() public method
public string getName ( )

                public function getName(): string
{
    return self::class;
}

            
shutdown() public method
public void shutdown ( )

                public function shutdown(): void
{
    $this->reset();
    $this->isActive = false;
}

            
startup() public method
public void startup ( )

                public function startup(): void
{
    $this->isActive = true;
}