PHP 8.3.31
Preview: Queue.php Size: 709 B
/home/getspomw/royalsquad.us/vendor/laravel/pail/src/ValueObjects/Origin/Queue.php

<?php

namespace Laravel\Pail\ValueObjects\Origin;

class Queue
{
    /**
     * Creates a new instance of the console origin.
     */
    public function __construct(
        public string $queue,
        public string $job,
        public ?string $command,
    ) {
        //
    }

    /**
     * Creates a new instance of the queue origin from the given json string.
     *
     * @param  array{queue: string, job: string, command: ?string}  $array
     */
    public static function fromArray(array $array): static
    {
        [
            'queue' => $queue,
            'job' => $job,
            'command' => $command,
        ] = $array;

        return new static($queue, $job, $command);
    }
}

Directory Contents

Dirs: 0 × Files: 3

Name Size Perms Modified Actions
536 B lrw-rw-rw- 2025-09-17 06:53:03
Edit Download
760 B lrw-rw-rw- 2025-09-17 06:53:03
Edit Download
709 B lrw-rw-rw- 2025-09-17 06:53:03
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).