data mapper POC
[m6w6/pq-gateway] / lib / pq / Mapper / PropertyInterface.php
diff --git a/lib/pq/Mapper/PropertyInterface.php b/lib/pq/Mapper/PropertyInterface.php
new file mode 100644 (file)
index 0000000..da6ccd3
--- /dev/null
@@ -0,0 +1,23 @@
+<?php
+
+namespace pq\Mapper;
+
+use pq\Gateway\Row;
+
+interface PropertyInterface
+{
+       function write($object, Row $rowToUpdate);
+       function read(Row $row, $objectToUpdate);
+
+       function assign($object, $value);
+       function extract($object);
+       
+       function getProperty();
+
+       function getContainer();
+       function setContainer(MapInterface $container);
+       
+       function defines($property);
+       function exposes($field);
+
+}