src/PushNotification/NotificationCenter.php
public function addNotifier(Notifier $notifier, bool $setLogger = true)
    {
        if ($notifier instanceof self) {
            throw new LogicException('Cannot add self');
        }

        if ($setLogger) {
            $notifier->setLogger($this->getLogger());
        }
        $this->notifiers[] = $notifier;
    }
public function addNotifier(Notifier $notifier, bool $setLogger = true)
    {
        if ($notifier instanceof self) {
            throw new LogicException('Cannot add self');
        }

        if ($setLogger) {
            $notifier->setLogger($this->getLogger());
        }
        $this->notifiers[] = $notifier;
    }
public function addNotifier ( Notifier $ notifier , bool $ setLogger = true ) { if ( $ notifier instanceof self ) { throw new LogicException ( 'Cannot add self' ) ; } if ( $ setLogger ) { $ notifier -> setLogger ( $ this -> getLogger ( ) ) ; } $ this -> notifiers [ ] = $ notifier ; }
Add a notifier to the Notification center.

@param Notifier $notifier
@param bool $setLogger if false the default logger will not be set to the notifier

@throws LogicException
Add a notifier to the Notification center .