Вход Регистрация
Файл: vendor/laravel/framework/src/Illuminate/Queue/Events/JobAttempted.php
Строк: 46
<?php

namespace IlluminateQueueEvents;

class 
JobAttempted
{
    
/**
     * Create a new event instance.
     *
     * @param  string  $connectionName  The connection name.
     * @param  IlluminateContractsQueueJob  $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);
    }
}
Онлайн: 2
Реклама