Your IP : 3.146.176.191


Current Path : /home/lentoinv/props/vendor/spatie/laravel-ignition/src/Recorders/DumpRecorder/
Upload File :
Current File : /home/lentoinv/props/vendor/spatie/laravel-ignition/src/Recorders/DumpRecorder/Dump.php

<?php

namespace Spatie\LaravelIgnition\Recorders\DumpRecorder;

class Dump
{
    protected string $htmlDump;

    protected ?string $file;

    protected ?int $lineNumber;

    protected float $microtime;

    public function __construct(string $htmlDump, ?string $file, ?int $lineNumber, ?float $microtime = null)
    {
        $this->htmlDump = $htmlDump;
        $this->file = $file;
        $this->lineNumber = $lineNumber;
        $this->microtime = $microtime ?? microtime(true);
    }

    /** @return array<string, mixed> */
    public function toArray(): array
    {
        return [
            'html_dump' => $this->htmlDump,
            'file' => $this->file,
            'line_number' => $this->lineNumber,
            'microtime' => $this->microtime,
        ];
    }
}

?>