Final Class Yiisoft\Yii\Debug\Collector\VarDumperCollector
| Inheritance | Yiisoft\Yii\Debug\Collector\VarDumperCollector |
|---|---|
| Implements | Yiisoft\Yii\Debug\Collector\SummaryCollectorInterface |
| Uses Traits | Yiisoft\Yii\Debug\Collector\CollectorTrait |
Public Methods
Method Details
| public mixed __construct ( Yiisoft\Yii\Debug\Collector\TimelineCollector $timelineCollector ) | ||
| $timelineCollector | Yiisoft\Yii\Debug\Collector\TimelineCollector | |
public function __construct(
private readonly TimelineCollector $timelineCollector
) {
}
| public void collect ( mixed $variable, string $line ) | ||
| $variable | mixed | |
| $line | string | |
public function collect(mixed $variable, string $line): void
{
$this->vars[] = [
'variable' => $variable,
'line' => $line,
];
$this->timelineCollector->collect($this, count($this->vars));
}
| public array getCollected ( ) |
public function getCollected(): array
{
if (!$this->isActive()) {
return [];
}
return $this->vars;
}
| public array getSummary ( ) |
public function getSummary(): array
{
if (!$this->isActive()) {
return [];
}
return [
'total' => count($this->vars),
];
}
| public void shutdown ( ) |
public function shutdown(): void
{
$this->reset();
$this->isActive = false;
}
Signup or Login in order to comment.