src/Node/Node.php
public function notifySubscribers(string $eventId, array $eventData)
    {
        /** @var SubscriberInterface $subscriber */
        foreach ($this->getSubscribers() as $subscriber) {
            $subscriber->handleEvent($eventId, $eventData);
        }
    }
public function notifySubscribers(string $eventId, array $eventData)
    {
        /** @var SubscriberInterface $subscriber */
        foreach ($this->getSubscribers() as $subscriber) {
            $subscriber->handleEvent($eventId, $eventData);
        }
    }
public function notifySubscribers ( string $ eventId , array $ eventData ) { /** @var SubscriberInterface $subscriber */ foreach ( $ this -> getSubscribers ( ) as $ subscriber ) { $ subscriber -> handleEvent ( $ eventId , $ eventData ) ; } }
Fires an event. Subscribers gets notified about this event.

@param string $eventId   - Event ID.
@param array  $eventData - Event Data.

@return void
Fires an event . Subscribers gets notified about this event .