summaryrefslogtreecommitdiffstats
path: root/db/imapper.php
diff options
context:
space:
mode:
Diffstat (limited to 'db/imapper.php')
-rw-r--r--db/imapper.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/db/imapper.php b/db/imapper.php
index 5a5f0a3cc..18a924e24 100644
--- a/db/imapper.php
+++ b/db/imapper.php
@@ -13,10 +13,23 @@
namespace OCA\News\Db;
+use \OCP\AppFramework\Db\Entity;
+
interface IMapper {
+
/**
* @param int $id the id of the feed
* @param string $userId the id of the user
+ * @return \OCP\AppFramework\Db\Entity
*/
public function find($id, $userId);
+
+ /**
+ * Delete an entity
+ * @param Entity $entity the entity that should be deleted
+ * @throws \OCP\AppFramework\Db\DoesNotExistException if the entity does
+ * not exist, or there
+ * are more than one of it
+ */
+ public function delete(Entity $entity);
} \ No newline at end of file