data mapper POC
[m6w6/pq-gateway] / lib / pq / Mapper / StorageInterface.php
diff --git a/lib/pq/Mapper/StorageInterface.php b/lib/pq/Mapper/StorageInterface.php
new file mode 100644 (file)
index 0000000..db16df5
--- /dev/null
@@ -0,0 +1,15 @@
+<?php
+
+namespace pq\Mapper;
+
+interface StorageInterface
+{
+       /**
+        * @return pq\Mapper\Mapper
+        */
+       function getMapper();
+       
+       function find($where, $order = null, $limit = null, $offset = null);
+       function delete($object);
+       function persist($object);
+}
\ No newline at end of file