summaryrefslogtreecommitdiffstats
path: root/vendor/ipl/orm/src/Contract/RetrieveBehavior.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/ipl/orm/src/Contract/RetrieveBehavior.php')
-rw-r--r--vendor/ipl/orm/src/Contract/RetrieveBehavior.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/vendor/ipl/orm/src/Contract/RetrieveBehavior.php b/vendor/ipl/orm/src/Contract/RetrieveBehavior.php
new file mode 100644
index 0000000..884d074
--- /dev/null
+++ b/vendor/ipl/orm/src/Contract/RetrieveBehavior.php
@@ -0,0 +1,18 @@
+<?php
+
+namespace ipl\Orm\Contract;
+
+use ipl\Orm\Behavior;
+use ipl\Orm\Model;
+
+interface RetrieveBehavior extends Behavior
+{
+ /**
+ * Apply this behavior on the given model
+ *
+ * Called when the model is fetched from the database.
+ *
+ * @param Model $model
+ */
+ public function retrieve(Model $model);
+}