yxorP Documentation

Stacktrace
in package

Table of Contents

MAX_LENGTH  = 200
NUM_LINES  = 7
$config  : Configuration
$frames  : array<string|int, mixed>
__construct()  : mixed
addFrame()  : mixed
frameInsideSnag()  : bool
fromBacktrace()  : static
fromFrame()  : static
generate()  : static
getFrames()  : array<string|int, mixed>
removeFrame()  : mixed
toArray()  : array<string|int, mixed>
getBounds()  : array<string|int, mixed>
getCode()  : array<string|int, mixed>|null

Constants

Properties

$frames

private array<string|int, mixed> $frames = []

Methods

addFrame()

public addFrame(mixed $file, mixed $line, mixed $method[, mixed $class = null ]) : mixed
Parameters
$file : mixed
$line : mixed
$method : mixed
$class : mixed = null
Return values
mixed

frameInsideSnag()

public static frameInsideSnag(array<string|int, mixed> $frame) : bool
Parameters
$frame : array<string|int, mixed>
Return values
bool

fromBacktrace()

public static fromBacktrace(Configuration $config, array<string|int, mixed> $backtrace, mixed $topFile, mixed $topLine) : static
Parameters
$config : Configuration
$backtrace : array<string|int, mixed>
$topFile : mixed
$topLine : mixed
Return values
static

fromFrame()

public static fromFrame(Configuration $config, mixed $file, mixed $line) : static
Parameters
$config : Configuration
$file : mixed
$line : mixed
Return values
static

getFrames()

public & getFrames() : array<string|int, mixed>
Return values
array<string|int, mixed>

removeFrame()

public removeFrame(mixed $index) : mixed
Parameters
$index : mixed
Return values
mixed

toArray()

public & toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>

getBounds()

protected static getBounds(mixed $line, mixed $num, mixed $max) : array<string|int, mixed>
Parameters
$line : mixed
$num : mixed
$max : mixed
Return values
array<string|int, mixed>

getCode()

protected getCode(mixed $path, mixed $line, mixed $numLines) : array<string|int, mixed>|null
Parameters
$path : mixed
$line : mixed
$numLines : mixed
Return values
array<string|int, mixed>|null

Search results