You are here

class LtiToolProviderRolesEvent in LTI Tool Provider 8

Same name and namespace in other branches
  1. 2.x modules/lti_tool_provider_roles/src/Event/LtiToolProviderRolesEvent.php \Drupal\lti_tool_provider_roles\Event\LtiToolProviderRolesEvent

Hierarchy

Expanded class hierarchy of LtiToolProviderRolesEvent

1 file declares its use of LtiToolProviderRolesEvent
LtiToolProviderRolesEventSubscriber.php in modules/lti_tool_provider_roles/src/EventSubscriber/LtiToolProviderRolesEventSubscriber.php

File

modules/lti_tool_provider_roles/src/Event/LtiToolProviderRolesEvent.php, line 8

Namespace

Drupal\lti_tool_provider_roles\Event
View source
class LtiToolProviderRolesEvent extends LtiToolProviderEvent {
  const EVENT_NAME = 'LTI_TOOL_PROVIDER_ROLES_EVENT';

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

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

  /**
   * LtiToolProviderRolesEvent 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