You are here

class LtiToolProviderAuthenticatedEvent in LTI Tool Provider 2.x

Same name and namespace in other branches
  1. 8 src/Event/LtiToolProviderAuthenticatedEvent.php \Drupal\lti_tool_provider\Event\LtiToolProviderAuthenticatedEvent

Hierarchy

Expanded class hierarchy of LtiToolProviderAuthenticatedEvent

3 files declare their use of LtiToolProviderAuthenticatedEvent
LTIToolProvider.php in src/Authentication/Provider/LTIToolProvider.php
LtiToolProviderAttributesEventSubscriber.php in modules/lti_tool_provider_attributes/src/EventSubscriber/LtiToolProviderAttributesEventSubscriber.php
LtiToolProviderRolesEventSubscriber.php in modules/lti_tool_provider_roles/src/EventSubscriber/LtiToolProviderRolesEventSubscriber.php

File

src/Event/LtiToolProviderAuthenticatedEvent.php, line 8

Namespace

Drupal\lti_tool_provider\Event
View source
class LtiToolProviderAuthenticatedEvent extends LtiToolProviderEvent {
  const EVENT_NAME = 'LTI_TOOL_PROVIDER_AUTHENTICATED_EVENT';

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

  /**
   * @var UserInterface
   */
  private $user;

  /**
   * LtiToolProviderAuthenticatedEvent constructor.
   *
   * @param array $context
   * @param UserInterface $user
   */
  public function __construct(array $context, UserInterface $user) {
    $this
      ->setContext($context);
    $this
      ->setUser($user);
  }

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

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

  /**
   * @return UserInterface
   */
  public function getUser() : UserInterface {
    return $this->user;
  }

  /**
   * @param UserInterface $user
   */
  public function setUser(UserInterface $user) : void {
    $this->user = $user;
  }

}

Members