Can delete a notification.

This commit is contained in:
Pierre
2018-02-18 15:34:53 +01:00
parent 19516e3a5e
commit 87a19b02f9
2 changed files with 52 additions and 2 deletions

View File

@ -75,7 +75,7 @@ class Notification {
}
/**
* Get notification iD
* Get notification ID
*
* @return int The ID of the notification
*/
@ -83,6 +83,15 @@ class Notification {
return $this->id;
}
/**
* Check if the notification object has an ID or not
*
* @return bool TRUE if the notification as an ID / FALSE else
*/
public function has_id() : bool {
return $this->id != null;
}
/**
* Set notification creation time
*
@ -156,6 +165,15 @@ class Notification {
return $this->dest_user_id;
}
/**
* Check if the notification has a destination user ID
*
* @return bool TRUE if the destination user ID was specified
*/
public function has_dest_user_id() : bool {
return $this->dest_user_id != null;
}
/**
* Set notification target element id
*