/**
  * Sends immediate notification if needed
  * @param DeferredGroup $group
  * @param DeferredQueue $item
  */
 private function immediateNotification(&$group, &$item)
 {
     $item->complete();
     $immediateNotification = false;
     if (is_object($group) === true) {
         if (intval($group->group_notifications) === 0) {
             $immediateNotification = true;
         }
     } else {
         $immediateNotification = true;
     }
     if ($immediateNotification === true) {
         $this->trigger(self::EVENT_DEFERRED_QUEUE_COMPLETE, new DeferredQueueCompleteEvent($item));
     }
 }
 /**
  * Sends immediate notification if needed
  * @param DeferredGroup $group
  * @param DeferredQueue $item
  */
 private function immediateNotification(&$group, &$item)
 {
     $item->complete();
     $immediateNotification = false;
     if (is_object($group) === true) {
         if (intval($group->group_notifications) === 0) {
             $immediateNotification = true;
         }
     } else {
         $immediateNotification = true;
     }
     if ($immediateNotification === true) {
         $this->trigger('deferred-queue-complete', new DeferredQueueCompleteEvent($item));
     }
 }