mirror of
https://github.com/pierre42100/ComunicAPI
synced 2025-06-18 16:18:04 +00:00
Can delete a notification.
This commit is contained in:
@ -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
|
||||
*
|
||||
|
Reference in New Issue
Block a user