X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fpq%2FMapper%2FStorageInterface.php;fp=lib%2Fpq%2FMapper%2FStorageInterface.php;h=bb5c94a0f02207d9adf1172a5163eb86f5f6d4a1;hb=05a907a5cb7377e2ad7abfa21096e3630752b944;hp=188318aa64d1f9816e309f2795e9135a23bb6f31;hpb=d4d84fb9b85f0216bd611946d59054a606c71960;p=m6w6%2Fpq-gateway diff --git a/lib/pq/Mapper/StorageInterface.php b/lib/pq/Mapper/StorageInterface.php index 188318a..bb5c94a 100644 --- a/lib/pq/Mapper/StorageInterface.php +++ b/lib/pq/Mapper/StorageInterface.php @@ -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); }