<?php namespace Spatie\FlareClient; use Spatie\Backtrace\Frame as SpatieFrame; class Frame { protected SpatieFrame $frame; public static function fromSpatieFrame(SpatieFrame $frame): self { return new self($frame); } public function __construct(SpatieFrame $frame) { $this->frame = $frame; } public function toArray(): array { return [ 'file' => $this->frame->file, 'line_number' => $this->frame->lineNumber, 'method' => $this->frame->method, 'class' => $this->frame->class, 'code_snippet' => $this->frame->getSnippet(30), 'application_frame' => $this->frame->applicationFrame, ]; } }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
Concerns | Folder | 0755 |
|
|
Context | Folder | 0755 |
|
|
Contracts | Folder | 0755 |
|
|
Enums | Folder | 0755 |
|
|
FlareMiddleware | Folder | 0755 |
|
|
Glows | Folder | 0755 |
|
|
Http | Folder | 0755 |
|
|
Solutions | Folder | 0755 |
|
|
Time | Folder | 0755 |
|
|
Truncation | Folder | 0755 |
|
|
Api.php | File | 1.82 KB | 0644 |
|
Flare.php | File | 10.98 KB | 0644 |
|
Frame.php | File | 735 B | 0644 |
|
Report.php | File | 8.95 KB | 0644 |
|
View.php | File | 1.41 KB | 0644 |
|
helpers.php | File | 678 B | 0644 |
|