/
githubmirror
/
framework
Обзор
Документация
Войти
/
githubmirror
/
framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
13.x
src/Illuminate/Queue/Events/JobQueued.php
38 строк
899 B
Denys Finchenko
Add missing @throws \JsonException annotations (#60514)
15 июн 2026, 18:15
Не верифицирован
15 июн 2026, 18:15
a6ce2a7
Код
Авторство
О чём код?
<?php namespace Illuminate\Queue\Events; class JobQueued { /** * Create a new event instance. * * @param string $connectionName The connection name. * @param string|null $queue The queue name. * @param string|int|null $id The job ID. * @param \Closure|string|object $job The job instance. * @param string $payload The job payload. * @param int|null $delay The amount of time the job was delayed. */ public function __construct( public $connectionName, public $queue, public $id, public $job, public $payload, public $delay, ) { } /** * Get the decoded job payload. * * @return array * * @throws \JsonException */ public function payload() { return json_decode($this->payload, true, flags: JSON_THROW_ON_ERROR); } }