File "Queue.php"
Full Path: /var/www/html/back/vendor/laravel/pail/src/ValueObjects/Origin/Queue.php
File size: 709 bytes
MIME-type: text/x-php
Charset: utf-8
<?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);
}
}