You are here

RegistrationEvent.php in RNG - Events and Registrations 8.2

Same filename and directory in other branches
  1. 3.x src/Event/RegistrationEvent.php

Namespace

Drupal\rng\Event

File

src/Event/RegistrationEvent.php
View source
<?php

namespace Drupal\rng\Event;

use Drupal\rng\Entity\RegistrationInterface;
use Symfony\Component\EventDispatcher\Event;

/**
 * Registration event.
 *
 * @see \Drupal\rng\Event\RegistrationEvents
 */
class RegistrationEvent extends Event {

  /**
   * The registration.
   *
   * @var \Drupal\rng\Entity\RegistrationInterface
   */
  protected $registration;

  /**
   * RegistrationEvent constructor.
   *
   * @param \Drupal\rng\Entity\RegistrationInterface $registration
   *   The registration.
   */
  public function __construct(RegistrationInterface $registration) {
    $this->registration = $registration;
  }

  /**
   * Get the registration.
   *
   * @return \Drupal\rng\Entity\RegistrationInterface
   *   The registration.
   */
  public function getRegistration() {
    return $this->registration;
  }

}

Classes

Namesort descending Description
RegistrationEvent Registration event.