IPostDeleter
in
Post deleter service interface
Table of Contents
Methods
- delete() : bool
- Delete a post
- deleteById() : bool
- Delete a post by ID
Methods
delete()
Delete a post
public
delete(Post $post) : bool
Parameters
- $post : Post
-
Post to delete
Return values
bool —True if deleted successfully
deleteById()
Delete a post by ID
public
deleteById(int $id) : bool
Parameters
- $id : int
-
Post ID to delete
Return values
bool —True if deleted successfully