for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Yiisoft\Yii\Debug\Collector;
final class TimelineCollector implements CollectorInterface
{
use CollectorTrait;
private array $events = [];
public function getCollected(): array
if (!$this->isActive()) {
return [];
}
return $this->events;
public function collect(CollectorInterface $collector, string|int $reference, ...$data): void
return;
$this->events[] = [microtime(true), $reference, $collector::class, array_values($data)];
private function reset(): void
reset()
This check looks for private methods that have been defined, but are not used inside the class.
$this->events = [];
This check looks for private methods that have been defined, but are not used inside the class.