Completed
Push — master ( d3e72f...c0203d )
by Dmitry
01:39
created
src/Mapper.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -29,6 +29,9 @@  discard block
 block discarded – undo
29 29
         return $plugin;
30 30
     }
31 31
 
32
+    /**
33
+     * @param string $space
34
+     */
32 35
     public function create($space, $data)
33 36
     {
34 37
         return $this->getRepository($space)->create($data)->save();
@@ -39,6 +42,9 @@  discard block
 block discarded – undo
39 42
         return $this->getRepository($space)->findOne($params);
40 43
     }
41 44
 
45
+    /**
46
+     * @param string $space
47
+     */
42 48
     public function findOrCreate($space, $params = [])
43 49
     {
44 50
         return $this->getRepository($space)->findOrCreate($params)->save();
@@ -49,6 +55,9 @@  discard block
 block discarded – undo
49 55
         return $this->getRepository($space)->findOrFail($params)->save();
50 56
     }
51 57
 
58
+    /**
59
+     * @param string $space
60
+     */
52 61
     public function find($space, $params = [])
53 62
     {
54 63
         return $this->getRepository($space)->find($params);
Please login to merge, or discard this patch.