You are here

class LtiToolProviderProvisionEvent in LTI Tool Provider 2.x

Same name and namespace in other branches
  1. 8 modules/lti_tool_provider_provision/src/Event/LtiToolProviderProvisionEvent.php \Drupal\lti_tool_provider_provision\Event\LtiToolProviderProvisionEvent

Hierarchy

Expanded class hierarchy of LtiToolProviderProvisionEvent

1 file declares its use of LtiToolProviderProvisionEvent
LtiToolProviderProvisionEventSubscriber.php in modules/lti_tool_provider_provision/src/EventSubscriber/LtiToolProviderProvisionEventSubscriber.php

File

modules/lti_tool_provider_provision/src/Event/LtiToolProviderProvisionEvent.php, line 8

Namespace

Drupal\lti_tool_provider_provision\Event
View source
class LtiToolProviderProvisionEvent extends LtiToolProviderEvent {
  const EVENT_NAME = 'LTI_TOOL_PROVIDER_PROVISION_EVENT';

  /**
   * @var array
   */
  private $context;

  /**
   * @var EntityInterface
   */
  private $entity;

  /**
   * @var string
   */
  private $destination;

  /**
   * LtiToolProviderProvisionEvent constructor.
   *
   * @param array $context
   * @param EntityInterface $entity
   * @param string $destination
   */
  public function __construct(array $context, EntityInterface $entity, string $destination) {
    $this
      ->setContext($context);
    $this
      ->setEntity($entity);
    $this
      ->setDestination($destination);
  }

  /**
   * @return array
   */
  public function getContext() : array {
    return $this->context;
  }

  /**
   * @param array $context
   */
  public function setContext(array $context) {
    $this->context = $context;
  }

  /**
   * @return EntityInterface
   */
  public function getEntity() : EntityInterface {
    return $this->entity;
  }

  /**
   * @param EntityInterface $entity
   */
  public function setEntity(EntityInterface $entity) : void {
    $this->entity = $entity;
  }

  /**
   * @return string
   */
  public function getDestination() : string {
    return $this->destination;
  }

  /**
   * @param string $destination
   */
  public function setDestination(string $destination) : void {
    $this->destination = $destination;
  }

}

Members