cleanups
[m6w6/pq-gateway] / lib / pq / Mapper / MapInterface.php
index 0c3430ceb8a45d786afce9ded06451851f3a74db..0e0db3a3e97e9c08e5e0c3326b388a6898fc7b3c 100644 (file)
@@ -28,6 +28,29 @@ interface MapInterface
         */
        function addProperty(PropertyInterface $property);
 
+       /**
+        * @param Row $row
+        * @param string $refName
+        * @param array $objects
+        * @return Rowset
+        */
+       function allOf(Row $row, $refName, &$objects = null);
+
+       /**
+        * @param Row $row
+        * @param string $refName
+        * @param array $objects
+        * @return Rowset
+        */
+       function refOf(Row $row, $refName, &$objects = null);
+
+       /**
+        * @param MapInterface $map origin
+        * @param string $refName relations reference name
+        * @return array relation reference
+        */
+       function relOf(MapInterface $map, $refName);
+
        /**
         * @param Row $row
         * @return object
@@ -35,7 +58,7 @@ interface MapInterface
        function map(Row $row);
 
        /**
-        * @param \pq\Mapper\Rowset $rows
+        * @param Rowset $rows
         * @return array
         */
        function mapAll(Rowset $rows);
@@ -45,4 +68,4 @@ interface MapInterface
         * @return Row
         */
        function unmap($object);
-}
\ No newline at end of file
+}