/**
  * Get number of notification
  * not read
  *
  * @param         $to_id
  * @param Closure $filterScope
  * @return mixed
  */
 public function countNotRead($to_id, Closure $filterScope = null)
 {
     return $this->notifynderRepo->countNotRead($to_id, $this->entity);
 }
Ejemplo n.º 2
0
 /** @test */
 public function it_delete_notification_by_categories(NotificationDB $notificationRepo)
 {
     $categoryName = 'notifynder.test';
     $notificationRepo->deleteByCategory($categoryName, false)->shouldBeCalled()->willReturn(1);
     $this->deleteByCategory($categoryName)->shouldReturn(1);
 }
Ejemplo n.º 3
0
 /**
  * Get number of notification
  * not read
  *
  * @param $to_id
  * @return mixed
  */
 public function countNotRead($to_id)
 {
     return $this->notifynderRepo->countNotRead($to_id, $this->entity);
 }