Frame
class Frame
Traits
Resolve source links for consumers that provide a $basePath property.
Properties
| protected array<string, string> | $editorHrefs | All of the href formats for common editors. |
from ResolvesSourceHref |
| protected bool | $isMain | Whether this frame is the main (first non-vendor) frame. |
Methods
Resolve the source href, if possible.
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
in
ResolvesSourceHref at line 50
protected string|null
resolveSourceHref(string $file, int|null $line)
Resolve the source href, if possible.
at line 28
__construct(FlattenException $exception, array $classMap, array $frame, string $basePath, Frame|null $previous = null)
Create a new frame instance.
at line 40
string
source()
Get the frame's source / origin.
at line 51
string|null
editorHref()
Get the frame's editor link.
at line 59
string|null
class()
Get the frame's class, if any.
at line 73
string
file()
Get the frame's file.
at line 85
int
line()
Get the frame's line number.
at line 101
string
operator()
Get the frame's function operator.
at line 109
string
callable()
Get the frame's function or method.
at line 120
array
args()
Get the frame's arguments.
at line 139
string
snippet()
Get the frame's code snippet.
at line 157
bool
isFromVendor()
Determine if the frame is from the vendor directory.
at line 166
Frame|null
previous()
Get the previous frame.
at line 174
void
markAsMain()
Mark this frame as the main frame.
at line 182
bool
isMain()
Determine if this is the main frame.