/
githubmirror
/
framework
Обзор
Документация
Войти
/
githubmirror
/
framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
13.x
src/Illuminate/Queue/Events/JobAttempted.php
30 строк
747 B
Bert
pass exception (#56148)
03 июл 2025, 02:00
Не верифицирован
03 июл 2025, 02:00
7185379
Код
Авторство
О чём код?
<?php namespace Illuminate\Queue\Events; class JobAttempted { /** * Create a new event instance. * * @param string $connectionName The connection name. * @param \Illuminate\Contracts\Queue\Job $job The job instance. * @param \Throwable|null $exception The exception, if one occurred while processing the job. */ public function __construct( public $connectionName, public $job, public $exception = null, ) { } /** * Determine if the job completed with failing or an unhandled exception occurring. * * @return bool */ public function successful(): bool { return ! $this->job->hasFailed() && is_null($this->exception); } }