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

Delete a notification giving the id of it.
public delete ( $notificationId ) : boolean
$notificationId
Результат boolean
Пример #1
0
 /** @test */
 public function it_delete_a_notification_by_id(NotificationDB $notificationRepo)
 {
     $notification_id = 1;
     $notificationRepo->delete($notification_id)->shouldBeCalled()->willReturn(1);
     $this->delete($notification_id)->shouldReturn(1);
 }
 /**
  * Delete a notification giving the id
  * of it
  *
  * @param $notification_id
  * @return Bool
  */
 public function delete($notification_id)
 {
     return $this->notifynderRepo->delete($notification_id);
 }