@@ -31,6 +31,9 @@ |
||
| 31 | 31 | return $response; |
| 32 | 32 | } |
| 33 | 33 | |
| 34 | + /** |
|
| 35 | + * @param double $start |
|
| 36 | + */ |
|
| 34 | 37 | private function log($start, $class, $request = [], $response = []) |
| 35 | 38 | { |
| 36 | 39 | if ($this->logging) { |
@@ -28,6 +28,9 @@ discard block |
||
| 28 | 28 | return $plugin; |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | + /** |
|
| 32 | + * @param string $space |
|
| 33 | + */ |
|
| 31 | 34 | public function create($space, $data) |
| 32 | 35 | { |
| 33 | 36 | $instance = $this->getRepository($space)->create($data); |
@@ -35,11 +38,17 @@ discard block |
||
| 35 | 38 | return $instance; |
| 36 | 39 | } |
| 37 | 40 | |
| 41 | + /** |
|
| 42 | + * @param string $space |
|
| 43 | + */ |
|
| 38 | 44 | public function findOne($space, $params = []) |
| 39 | 45 | { |
| 40 | 46 | return $this->getRepository($space)->findOne($params); |
| 41 | 47 | } |
| 42 | 48 | |
| 49 | + /** |
|
| 50 | + * @param string $space |
|
| 51 | + */ |
|
| 43 | 52 | public function find($space, $params = []) |
| 44 | 53 | { |
| 45 | 54 | return $this->getRepository($space)->find($params); |
@@ -19,6 +19,9 @@ |
||
| 19 | 19 | } |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | + /** |
|
| 23 | + * @param Space $space |
|
| 24 | + */ |
|
| 22 | 25 | private function generateValue($space) |
| 23 | 26 | { |
| 24 | 27 | $spaceId = $space->getId(); |
@@ -120,6 +120,9 @@ |
||
| 120 | 120 | |
| 121 | 121 | private $underscores = []; |
| 122 | 122 | |
| 123 | + /** |
|
| 124 | + * @param string $input |
|
| 125 | + */ |
|
| 123 | 126 | private function toUnderscore($input) |
| 124 | 127 | { |
| 125 | 128 | if(!array_key_exists($input, $this->underscores)) { |
@@ -236,6 +236,9 @@ |
||
| 236 | 236 | $this->cache = []; |
| 237 | 237 | } |
| 238 | 238 | |
| 239 | + /** |
|
| 240 | + * @param Entity $instance |
|
| 241 | + */ |
|
| 239 | 242 | public function save($instance) |
| 240 | 243 | { |
| 241 | 244 | $tuple = []; |