You are here

class ModifierMatchedEvent in Persistent URL 8

Hierarchy

Expanded class hierarchy of ModifierMatchedEvent

4 files declare their use of ModifierMatchedEvent
MatchedModifiers.php in src/MatchedModifiers.php
PurlCacheContext.php in src/Cache/Context/PurlCacheContext.php
PurlContextOutboundPathProcessor.php in src/PathProcessor/PurlContextOutboundPathProcessor.php
PurlContextOutboundRouteProcessor.php in src/RouteProcessor/PurlContextOutboundRouteProcessor.php

File

src/Event/ModifierMatchedEvent.php, line 8

Namespace

Drupal\purl\Event
View source
class ModifierMatchedEvent extends Event {

  /**
   * @var Request
   */
  protected $request;

  /**
   * @var string
   */
  protected $providerKey;

  /**
   * @var string
   */
  protected $modifierKey;

  /**
   * @var mixed
   */
  protected $value;

  /**
   * @var string
   */
  protected $methodKey;

  /**
   * @param Request $request
   * @param string $providerKey
   * @param string $modifierKey
   * @param mixed $value
   */
  public function __construct(Request $request, $providerKey, $methodKey, $modifierKey, $value) {
    $this->request = $request;
    $this->providerKey = $providerKey;
    $this->modifierKey = $modifierKey;
    $this->methodKey = $methodKey;
    $this->value = $value;
  }

  /**
   * @return Request
   */
  public function getRequest() {
    return $this->request;
  }

  /**
   * @return string
   */
  public function getProvider() {
    return $this->providerKey;
  }

  /**
   * @return string
   */
  public function getModifier() {
    return $this->modifierKey;
  }
  public function getMethod() {
    return $this->methodKey;
  }

  /**
   * @return mixed
   */
  public function getValue() {
    return $this->value;
  }

}

Members