class Frame (View source)

Traits

Properties

protected array<string,string> $editorHrefs

All of the href formats for common editors.

from  ResolvesDumpSource
static protected array<string,int> $adjustableTraces

Files that require special trace handling and their levels.

from  ResolvesDumpSource
static protected $dumpSourceResolver from  ResolvesDumpSource
protected FlattenException $exception

The "flattened" exception instance.

protected array<string,string> $classMap

The application's class map.

protected $frame

The frame's raw data from the "flattened" exception.

protected string $basePath

The application's base path.

Methods

resolveDumpSource()

Resolve the source of the dump call.

bool
isCompiledViewFile(string $file)

Determine if the given file is a view compiled.

string
getOriginalFileForCompiledView(string $file)

Get the original view compiled file by the given compiled file.

string|null
resolveSourceHref(string $file, int|null $line)

Resolve the source href, if possible.

static 
resolveDumpSourceUsing($callable)

No description

static void
dontIncludeSource()

Don't include the location / file of the dump in dumps.

void
__construct(FlattenException $exception, array $classMap, array $frame, string $basePath)

Create a new frame instance.

string
source()

Get the frame's source / origin.

string
editorHref()

Get the frame's editor link.

string|null
class()

Get the frame's class, if any.

string
file()

Get the frame's file.

int
line()

Get the frame's line number.

string
callable()

Get the frame's function or method.

string
snippet()

Get the frame's code snippet.

bool
isFromVendor()

Determine if the frame is from the vendor directory.

Details

resolveDumpSource()

Resolve the source of the dump call.

protected bool isCompiledViewFile(string $file)

Determine if the given file is a view compiled.

Parameters

string $file

Return Value

bool

protected string getOriginalFileForCompiledView(string $file)

Get the original view compiled file by the given compiled file.

Parameters

string $file

Return Value

string

protected string|null resolveSourceHref(string $file, int|null $line)

Resolve the source href, if possible.

Parameters

string $file
int|null $line

Return Value

string|null

static resolveDumpSourceUsing($callable)

No description

Parameters

$callable

static void dontIncludeSource()

Don't include the location / file of the dump in dumps.

Return Value

void

void __construct(FlattenException $exception, array $classMap, array $frame, string $basePath)

Create a new frame instance.

Parameters

FlattenException $exception
array $classMap
array $frame
string $basePath

Return Value

void

string source()

Get the frame's source / origin.

Return Value

string

string editorHref()

Get the frame's editor link.

Return Value

string

string|null class()

Get the frame's class, if any.

Return Value

string|null

string file()

Get the frame's file.

Return Value

string

int line()

Get the frame's line number.

Return Value

int

string callable()

Get the frame's function or method.

Return Value

string

string snippet()

Get the frame's code snippet.

Return Value

string

bool isFromVendor()

Determine if the frame is from the vendor directory.

Return Value

bool