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\EventView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
JobEvent:: |
protected | property | The job. | |
JobEvent:: |
public | function | Gets the job. | |
JobEvent:: |
public | function | Constructs a new JobEvent object. |