summaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-05-16 13:27:06 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-05-16 13:27:06 +0200
commit92ea15247e59aebb74c7a020e47defcb47ae5df3 (patch)
treed2066ed8fa2359ff83881c5ac75f5821a2dc2c32 /db
parentb65f71b6d191d8af8b97dd72405fbd3576299806 (diff)
add delete method for imapper since service depends on it
Diffstat (limited to 'db')
-rw-r--r--db/imapper.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/db/imapper.php b/db/imapper.php
index 5a5f0a3cc..9882060f0 100644
--- a/db/imapper.php
+++ b/db/imapper.php
@@ -13,10 +13,21 @@
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
*/
public function find($id, $userId);
+
+ /**
+ * Delete an entity
+ * @param Entity $entity the entity that should be deleted
+ * @throws ServiceNotFoundException 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