X7ROOT File Manager
Current Path:
/home/prisjneg/public_html/vendor/spatie/error-solutions/src/Solutions
home
/
prisjneg
/
public_html
/
vendor
/
spatie
/
error-solutions
/
src
/
Solutions
/
📁
..
📁
Concerns
📁
Laravel
📁
OpenAi
📄
SolutionTransformer.php
(900 B)
📄
SuggestCorrectVariableNameSolution.php
(1001 B)
📄
SuggestImportSolution.php
(712 B)
Editing: SolutionTransformer.php
<?php namespace Spatie\ErrorSolutions\Solutions; use Illuminate\Contracts\Support\Arrayable; use Spatie\ErrorSolutions\Contracts\Solution; /** @implements Arrayable<string, array<string,string>|string|false> */ class SolutionTransformer implements Arrayable { protected Solution $solution; public function __construct(Solution $solution) { $this->solution = $solution; } /** @return array<string, array<string,string>|string|false> */ public function toArray(): array { return [ 'class' => get_class($this->solution), 'title' => $this->solution->getSolutionTitle(), 'links' => $this->solution->getDocumentationLinks(), 'description' => $this->solution->getSolutionDescription(), 'is_runnable' => false, 'ai_generated' => $this->solution->aiGenerated ?? false, ]; } }
Upload File
Create Folder