public function clearNotificationListeners($notification_type)
    {
        if (!NotificationType::isNotificationTypeValid($notification_type)) {
            $this->_logger->log(Logger::ERROR, "Invalid notification type.");
            $this->_errorHandler->handleError(new InvalidNotificationTypeException('Invalid notification type.'));
            return;
        }

        $this->_notifications[$notification_type] = [];
        $this->_logger->log(Logger::INFO, "All callbacks for notification type '{$notification_type}' have been removed.");
    }
public function clearNotificationListeners($notification_type)
    {
        if (!NotificationType::isNotificationTypeValid($notification_type)) {
            $this->_logger->log(Logger::ERROR, "Invalid notification type.");
            $this->_errorHandler->handleError(new InvalidNotificationTypeException('Invalid notification type.'));
            return;
        }

        $this->_notifications[$notification_type] = [];
        $this->_logger->log(Logger::INFO, "All callbacks for notification type '{$notification_type}' have been removed.");
    }
public function clearNotificationListeners ( $ notification_type ) { if ( ! NotificationType :: isNotificationTypeValid ( $ notification_type ) ) { $ this -> _logger -> log ( Logger :: ERROR , "Invalid notification type." ) ; $ this -> _errorHandler -> handleError ( new InvalidNotificationTypeException ( 'Invalid notification type.' ) ) ; return ; } $ this -> _notifications [ $ notification_type ] = [ ] ; $ this -> _logger -> log ( Logger :: INFO , "All callbacks for notification type '{$notification_type}' have been removed." ) ; }
Removes all notification callbacks for the given notification type

@param string $notification_type One of the constants defined in NotificationType
Removes all notification callbacks for the given notification type