Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. CollectingDispatcher.php

class CollectingDispatcher

@no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit

@internal This class is not covered by the backward compatibility promise for PHPUnit

Hierarchy

  • class \PHPUnit\Event\CollectingDispatcher implements \PHPUnit\Event\Dispatcher

Expanded class hierarchy of CollectingDispatcher

File

vendor/phpunit/phpunit/src/Event/Dispatcher/CollectingDispatcher.php, line 17

Namespace

PHPUnit\Event
View source
final class CollectingDispatcher implements Dispatcher {
    private EventCollection $events;
    public function __construct() {
        $this->events = new EventCollection();
    }
    public function dispatch(Event $event) : void {
        $this->events
            ->add($event);
    }
    public function flush() : EventCollection {
        $events = $this->events;
        $this->events = new EventCollection();
        return $events;
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
CollectingDispatcher::$events private property
CollectingDispatcher::dispatch public function Overrides Dispatcher::dispatch
CollectingDispatcher::flush public function
CollectingDispatcher::__construct public function
RSS feed
Powered by Drupal