You are here

class JobEvent in Advanced Queue 8

Defines the job event.

Hierarchy

  • class \Drupal\advancedqueue\Event\JobEvent extends \Symfony\Component\EventDispatcher\Event

Expanded class hierarchy of JobEvent

See also

\Drupal\advancedqueue\Event\AdvancedQueueEvents

1 file declares its use of JobEvent
Processor.php in src/Processor.php

File

src/Event/JobEvent.php, line 13

Namespace

Drupal\advancedqueue\Event
View source
class JobEvent extends Event {

  /**
   * The job.
   *
   * @var \Drupal\advancedqueue\Job
   */
  protected $job;

  /**
   * Constructs a new JobEvent object.
   *
   * @param \Drupal\advancedqueue\Job $job
   *   The job.
   */
  public function __construct(Job $job) {
    $this->job = $job;
  }

  /**
   * Gets the job.
   *
   * @return \Drupal\advancedqueue\Job
   *   The job.
   */
  public function getJob() {
    return $this->job;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
JobEvent::$job protected property The job.
JobEvent::getJob public function Gets the job.
JobEvent::__construct public function Constructs a new JobEvent object.