Chris@0: Chris@0: * Chris@0: * For the full copyright and license information, please view the LICENSE Chris@0: * file that was distributed with this source code. Chris@0: */ Chris@0: Chris@0: namespace Symfony\Component\VarDumper\Caster; Chris@0: Chris@0: use Symfony\Component\VarDumper\Cloner\Stub; Chris@0: Chris@0: /** Chris@0: * Represents a backtrace as returned by debug_backtrace() or Exception->getTrace(). Chris@0: * Chris@0: * @author Nicolas Grekas
Chris@0: */ Chris@0: class TraceStub extends Stub Chris@0: { Chris@0: public $keepArgs; Chris@0: public $sliceOffset; Chris@0: public $sliceLength; Chris@0: public $numberingOffset; Chris@0: Chris@0: public function __construct(array $trace, $keepArgs = true, $sliceOffset = 0, $sliceLength = null, $numberingOffset = 0) Chris@0: { Chris@0: $this->value = $trace; Chris@0: $this->keepArgs = $keepArgs; Chris@0: $this->sliceOffset = $sliceOffset; Chris@0: $this->sliceLength = $sliceLength; Chris@0: $this->numberingOffset = $numberingOffset; Chris@0: } Chris@0: }