File "Frame.php"
Full Path: /home/clickysoft/public_html/jmapi5.clickysoft.net/vendor/spatie/flare-client-php/src/Frame.php
File size: 753 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
namespace Spatie\FlareClient;
use Spatie\Backtrace\Frame as SpatieFrame;
class Frame
{
public static function fromSpatieFrame(
SpatieFrame $frame,
): self {
return new self($frame);
}
public function __construct(
protected SpatieFrame $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),
'arguments' => $this->frame->arguments,
'application_frame' => $this->frame->applicationFrame,
];
}
}