You are here

class FakeEvent in Hook Event Dispatcher 8

Same name and namespace in other branches
  1. 8.2 tests/src/Unit/Manager/FakeEvent.php \Drupal\Tests\hook_event_dispatcher\Unit\Manager\FakeEvent
  2. 3.x tests/src/Unit/Manager/FakeEvent.php \Drupal\Tests\hook_event_dispatcher\Unit\Manager\FakeEvent

Class FakeEvent.

@package Drupal\Tests\hook_event_dispatcher\Unit\Manager

Hierarchy

  • class \Drupal\Tests\hook_event_dispatcher\Unit\Manager\FakeEvent extends \Symfony\Component\EventDispatcher\Event implements EventInterface

Expanded class hierarchy of FakeEvent

File

tests/src/Unit/Manager/FakeEvent.php, line 13

Namespace

Drupal\Tests\hook_event_dispatcher\Unit\Manager
View source
class FakeEvent extends Event implements EventInterface {

  /**
   * Dispatcher type.
   *
   * @var string
   */
  private $dispatcherType;

  /**
   * FakeEvent constructor.
   *
   * @param string $dispatcherType
   *   Dispatcher type.
   */
  public function __construct($dispatcherType) {
    $this->dispatcherType = $dispatcherType;
  }

  /**
   * Get the dispatcher type.
   *
   * @return string
   *   The dispatcher type.
   */
  public function getDispatcherType() {
    return $this->dispatcherType;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
FakeEvent::$dispatcherType private property Dispatcher type.
FakeEvent::getDispatcherType public function Get the dispatcher type. Overrides EventInterface::getDispatcherType
FakeEvent::__construct public function FakeEvent constructor.