Completed
Push — master ( 6988c6...8f7a41 )
by Dmitry
05:00
created
src/Mapper.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -38,6 +38,9 @@  discard block
 block discarded – undo
38 38
         return $this->plugins[$class];
39 39
     }
40 40
 
41
+    /**
42
+     * @param string $space
43
+     */
41 44
     public function create($space, $data)
42 45
     {
43 46
         return $this->getRepository($space)->create($data)->save();
@@ -48,6 +51,9 @@  discard block
 block discarded – undo
48 51
         return $this->getRepository($space)->findOne($params);
49 52
     }
50 53
 
54
+    /**
55
+     * @param string $space
56
+     */
51 57
     public function findOrCreate($space, $params = [])
52 58
     {
53 59
         return $this->getRepository($space)->findOrCreate($params)->save();
@@ -58,6 +64,9 @@  discard block
 block discarded – undo
58 64
         return $this->getRepository($space)->findOrFail($params);
59 65
     }
60 66
 
67
+    /**
68
+     * @param string $space
69
+     */
61 70
     public function find($space, $params = [])
62 71
     {
63 72
         return $this->getRepository($space)->find($params);
Please login to merge, or discard this patch.