Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/rentpix.corals.io/vendor/spatie/ray/src/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/rentpix.corals.io/vendor/spatie/ray/src/Request.php
<?php

namespace Spatie\Ray;

use Spatie\Ray\Payloads\Payload;

class Request
{
    /** @var string */
    protected $uuid;

    /** @var array */
    protected $payloads;

    /** @var array */
    protected $meta;

    public function __construct(string $uuid, array $payloads, array $meta = [])
    {
        $this->uuid = $uuid;

        $this->payloads = $payloads;

        $this->meta = $meta;
    }

    public function toArray(): array
    {
        $payloads = array_map(function (Payload $payload) {
            return $payload->toArray();
        }, $this->payloads);

        return [
            'uuid' => $this->uuid,
            'payloads' => $payloads,
            'meta' => $this->meta,
        ];
    }

    public function toJson(): string
    {
        return json_encode($this->toArray());
    }
}

Spamworldpro Mini