Fenos\Notifynder\Contracts\NotificationDB::delete PHP Méthode

delete() public méthode

Delete a notification giving the id of it.
public delete ( $notificationId ) : boolean
$notificationId
Résultat boolean
    public function delete($notificationId);

Usage Example

 /** @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);
 }
All Usage Examples Of Fenos\Notifynder\Contracts\NotificationDB::delete