Completed
Push — master ( 93f83d...a02d8d )
by Dmitry
02:31
created
src/Mapper.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -29,11 +29,17 @@  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();
35 38
     }
36 39
 
40
+    /**
41
+     * @param string $space
42
+     */
37 43
     public function findOne($space, $params = [])
38 44
     {
39 45
         return $this->getRepository($space)->findOne($params);
@@ -44,6 +50,9 @@  discard block
 block discarded – undo
44 50
         return $this->getRepository($space)->findOrCreate($params)->save();
45 51
     }
46 52
 
53
+    /**
54
+     * @param string $space
55
+     */
47 56
     public function find($space, $params = [])
48 57
     {
49 58
         return $this->getRepository($space)->find($params);
Please login to merge, or discard this patch.