# VarDumpInterface

Chevere\Interfaces\VarDump\VarDumpInterface

view source

# Description

Describes the component in charge of providing a \var_dump() replacement.

# Methods

# __construct()

# Parameters

  1. VarDumpFormatterInterface $formatter
  2. VarDumpOutputterInterface $outputter

# withVars()

Return an instance with the specified $vars.

# Parameters

  1. $vars

RETURN

VarDumpInterface

This method MUST retain the state of the current instance, and return an instance that contains the specified $vars.


# withShift()

Return an instance with the specified $shift traces shifted.

# Parameters

  1. int $shift

RETURN

VarDumpInterface

This method MUST retain the state of the current instance, and return an instance that contains the specified $shift traces shifted.

This method removes $shift traces from \debug_backtrace()


# process()

Process the dump writing

# Parameters

  1. WriterInterface $writer

RETURN

void


# vars()

Provides access to the instance vars.

RETURN

array


# shift()

Provides access to the shift value.

RETURN

int


Last Updated: 8/2/2020, 1:36:58 AM