class FakeEvent in Hook Event Dispatcher 8.2
Same name and namespace in other branches
- 8 tests/src/Unit/Manager/FakeEvent.php \Drupal\Tests\hook_event_dispatcher\Unit\Manager\FakeEvent
- 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\ManagerView 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() : string {
return $this->dispatcherType;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FakeEvent:: |
private | property | Dispatcher type. | |
FakeEvent:: |
public | function |
Get the dispatcher type. Overrides EventInterface:: |
|
FakeEvent:: |
public | function | FakeEvent constructor. |