src/Dumper.php
public function setRenderer(int $target, RendererInterface $renderer): Dumper
    {
        if (!isset($this->targets[$target])) {
            throw new DumperException(sprintf("Undefined dump target %d", $target));
        }

        $this->targets[$target] = $renderer;

        return $this;
    }
public function setRenderer(int $target, RendererInterface $renderer): Dumper
    {
        if (!isset($this->targets[$target])) {
            throw new DumperException(sprintf("Undefined dump target %d", $target));
        }

        $this->targets[$target] = $renderer;

        return $this;
    }
public function setRenderer ( int $ target , RendererInterface $ renderer ) : Dumper { if ( ! isset ( $ this -> targets [ $ target ] ) ) { throw new DumperException ( sprintf ( "Undefined dump target %d" , $ target ) ) ; } $ this -> targets [ $ target ] = $ renderer ; return $ this ; }
Associate rendered with given output target.

@param int               $target
@param RendererInterface $renderer
@return Dumper
@throws DumperException
Associate rendered with given output target .