Final Class Yiisoft\Yii\Debug\Collector\VarDumperCollector
| Inheritance | Yiisoft\ |
|---|---|
| Implements | Yiisoft\ |
| Uses Traits | Yiisoft\ |
Public Methods
Method Details
| public mixed __construct ( Yiisoft\ | ||
| $timelineCollector | Yiisoft\ |
|
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;
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.