0 follower

Final Class Yiisoft\VarDumper\Handler\EchoHandler

InheritanceYiisoft\VarDumper\Handler\EchoHandler
ImplementsYiisoft\VarDumper\HandlerInterface

Public Methods

Hide inherited methods

Method Description Defined By
handle() Yiisoft\VarDumper\Handler\EchoHandler

Method Details

Hide inherited methods

handle() public method

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
{
    $varDumper = VarDumper::create($variable);
    $output = $varDumper->asString($depth);
    echo $highlight
        ? $this->highlight($output)
        : $output;
}