You are here

class LtiToolProviderReturnEvent in LTI Tool Provider 8

Same name and namespace in other branches
  1. 2.x src/Event/LtiToolProviderReturnEvent.php \Drupal\lti_tool_provider\Event\LtiToolProviderReturnEvent

Hierarchy

Expanded class hierarchy of LtiToolProviderReturnEvent

1 file declares its use of LtiToolProviderReturnEvent
LTIToolProviderController.php in src/Controller/LTIToolProviderController.php

File

src/Event/LtiToolProviderReturnEvent.php, line 7

Namespace

Drupal\lti_tool_provider\Event
View source
class LtiToolProviderReturnEvent extends LtiToolProviderEvent {
  const EVENT_NAME = 'LTI_TOOL_PROVIDER_RETURN_EVENT';

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

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

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

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

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

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

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

}

Members