deleteByCategory() публичный Метод

Delete All notifications from a defined category.
public deleteByCategory ( $categoryName, $expired = false ) : boolean
$categoryName
$expired Bool
Результат boolean
Пример #1
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);
 }
 /**
  * Delete All notifications from a
  * defined category
  *
  * @param $category_name string
  * @param $expired Bool
  * @return Bool
  */
 public function deleteByCategory($category_name, $expired = false)
 {
     return $this->notifynderRepo->deleteByCategory($category_name, $expired);
 }