Frame
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. |
|
protected Frame|null | $previous | The previous frame. |
|
protected bool | $isMain | Whether this frame is the main (first non-vendor) frame. |
Methods
Determine if the given file is a view compiled.
Get the original view compiled file by the given compiled file.
Resolve the source href, if possible.
Don't include the location / file of the dump in dumps.
Create a new frame instance.
Get the frame's source / origin.
Get the frame's editor link.
Get the frame's class, if any.
Get the frame's file.
Get the frame's line number.
Get the frame's function operator.
Get the frame's function or method.
Get the frame's arguments.
Get the frame's code snippet.
Determine if the frame is from the vendor directory.
Mark this frame as the main frame.
Determine if this is the main frame.
Details
resolveDumpSource()
Resolve the source of the dump call.
protected bool
isCompiledViewFile(string $file)
Determine if the given file is a view compiled.
protected string
getOriginalFileForCompiledView(string $file)
Get the original view compiled file by the given compiled file.
protected 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.
__construct(FlattenException $exception, array $classMap, array $frame, string $basePath, Frame|null $previous = null)
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.
operator()
Get the frame's function operator.
string
callable()
Get the frame's function or method.
array
args()
Get the frame's arguments.
string
snippet()
Get the frame's code snippet.
bool
isFromVendor()
Determine if the frame is from the vendor directory.
Frame|null
previous()
Get the previous frame.
void
markAsMain()
Mark this frame as the main frame.
bool
isMain()
Determine if this is the main frame.