Final Class Yiisoft\VarDumper\Handler\CompositeHandler
| Inheritance | Yiisoft\ |
|---|---|
| Implements | Yiisoft\ |
CompositeHandler allows to use multiple handlers at once.
It iterates over all handlers and calls their {@see \
Public Methods
| Method | Description | Defined By |
|---|---|---|
| __construct() | Yiisoft\ |
|
| handle() | Yiisoft\ |
Method Details
| public mixed __construct ( Yiisoft\ | ||
| $handlers | Yiisoft\ |
|
public function __construct(
private array $handlers,
) {}
| public void handle ( mixed $variable, integer $depth, boolean $highlight = false ) | ||
| $variable | mixed | |
| $depth | integer | |
| $highlight | boolean | |
public function handle(mixed $variable, int $depth, bool $highlight = false): void
{
foreach ($this->handlers as $handler) {
$handler->handle($variable, $depth, $highlight);
}
}
User Contributed Notes
Leave a comment
Join the conversation to share a note.