master

laravel/framework

Last updated at: 29/12/2023 09:23

JobProcessing.php

TLDR

This file contains the JobProcessing class in the Illuminate\Queue\Events namespace. The class has two public properties: $connectionName and $job. It also has a constructor that initializes these properties.

Classes

JobProcessing

The JobProcessing class is an event class that represents a job processing event in the queue. It is used to capture information about the connection name and the job being processed. The class has the following properties:

  • $connectionName: The name of the queue connection.
  • $job: An instance of the Illuminate\Contracts\Queue\Job interface representing the job being processed.

The class has a constructor that accepts the connection name and the job instance and initializes the corresponding properties.

<?php

namespace Illuminate\Queue\Events;

class JobProcessing
{
    /**
     * The connection name.
     *
     * @var string
     */
    public $connectionName;

    /**
     * The job instance.
     *
     * @var \Illuminate\Contracts\Queue\Job
     */
    public $job;

    /**
     * Create a new event instance.
     *
     * @param  string  $connectionName
     * @param  \Illuminate\Contracts\Queue\Job  $job
     * @return void
     */
    public function __construct($connectionName, $job)
    {
        $this->job = $job;
        $this->connectionName = $connectionName;
    }
}