FakeEvent.php in Hook Event Dispatcher 8
File
tests/src/Unit/Manager/FakeEvent.php
View source
<?php
namespace Drupal\Tests\hook_event_dispatcher\Unit\Manager;
use Drupal\hook_event_dispatcher\Event\EventInterface;
use Symfony\Component\EventDispatcher\Event;
class FakeEvent extends Event implements EventInterface {
private $dispatcherType;
public function __construct($dispatcherType) {
$this->dispatcherType = $dispatcherType;
}
public function getDispatcherType() {
return $this->dispatcherType;
}
}