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 30
__construct(FlattenException $exception, array $classMap, array $frame, string $basePath, Frame|null $previous = null)
Create a new frame instance.
at line 42
string
source()
Get the frame's source / origin.
at line 53
string|null
editorHref()
Get the frame's editor link.
at line 61
string|null
class()
Get the frame's class, if any.
at line 75
string
file()
Get the frame's file.
at line 87
int
line()
Get the frame's line number.
at line 103
string
operator()
Get the frame's function operator.
at line 111
string
callable()
Get the frame's function or method.
at line 122
array
args()
Get the frame's arguments.
at line 141
string
snippet()
Get the frame's code snippet.
at line 159
bool
isFromVendor()
Determine if the frame is from the vendor directory.
at line 172
Frame|null
previous()
Get the previous frame.
at line 180
void
markAsMain()
Mark this frame as the main frame.
at line 188
bool
isMain()
Determine if this is the main frame.