public function notifySubscribers(AbstractNotification $notification): void
    {
        foreach ($this->getSubscribers() as $subscriber) {
            if($subscriber instanceof Actor)
                $subscriber->notify($notification);
            // else: log // would be an awful bug, since Actors can subscribe only.
        }
    }
public function notifySubscribers(AbstractNotification $notification): void
    {
        foreach ($this->getSubscribers() as $subscriber) {
            if($subscriber instanceof Actor)
                $subscriber->notify($notification);
            // else: log // would be an awful bug, since Actors can subscribe only.
        }
    }
public function notifySubscribers ( AbstractNotification $ notification ) : void { foreach ( $ this -> getSubscribers ( ) as $ subscriber ) { if ( $ subscriber instanceof Actor ) $ subscriber -> notify ( $ notification ) ; // else: log // would be an awful bug, since Actors can subscribe only. } }
Sends notification to subscriber particles

@todo maybe this should go to Actor class. Not for particles.

@return void
Sends notification to subscriber particles