芝麻web文件管理V1.00
编辑当前文件:/home/rejoandoctor/www/vendor/facade/flare-client-php/src/Frame.php
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; } }