phpdoc
[m6w6/pq-gateway] / lib / pq / Mapper / StorageInterface.php
index 188318aa64d1f9816e309f2795e9135a23bb6f31..bb5c94a0f02207d9adf1172a5163eb86f5f6d4a1 100644 (file)
@@ -4,7 +4,25 @@ namespace pq\Mapper;
 
 interface StorageInterface
 {
-       function find($where, $order = null, $limit = null, $offset = null);
+       /**
+        * Find
+        * @param array $where
+        * @param string $order
+        * @param int $limit
+        * @param int $offset
+        * @return object[]
+        */
+       function find($where = [], $order = null, $limit = null, $offset = null);
+
+       /**
+        * Delete
+        * @param object $object
+        */
        function delete($object);
+
+       /**
+        * Save
+        * @param object $object
+        */
        function save($object);
 }