You are here

trait JobBasedEventTrait in TMGMT Translator Smartling 8.4

Hierarchy

File

src/Event/JobBasedEventTrait.php, line 7

Namespace

Drupal\tmgmt_smartling\Event
View source
trait JobBasedEventTrait {

  /**
   * New TMGMT Job.
   *
   * @var \Drupal\tmgmt\JobInterface
   */
  protected $job;

  /**
   * Constructs an AfterFileDownloadEvent object.
   *
   * @param \Drupal\tmgmt\JobInterface $job
   *   The translation job for the file that was downloaded.
   */
  public function __construct(JobInterface $job) {
    $this->job = $job;
  }

  /**
   * @inheritdoc
   */
  public function getJob() {
    return $this->job;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
JobBasedEventTrait::$job protected property New TMGMT Job.
JobBasedEventTrait::getJob public function @inheritdoc
JobBasedEventTrait::__construct public function Constructs an AfterFileDownloadEvent object.