@@ -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); |
@@ -259,6 +259,9 @@ |
||
| 259 | 259 | $this->results = []; |
| 260 | 260 | } |
| 261 | 261 | |
| 262 | + /** |
|
| 263 | + * @param Entity $instance |
|
| 264 | + */ |
|
| 262 | 265 | public function save($instance) |
| 263 | 266 | { |
| 264 | 267 | $tuple = []; |
@@ -185,6 +185,9 @@ |
||
| 185 | 185 | |
| 186 | 186 | private $underscores = []; |
| 187 | 187 | |
| 188 | + /** |
|
| 189 | + * @param string $input |
|
| 190 | + */ |
|
| 188 | 191 | private function toUnderscore($input) |
| 189 | 192 | { |
| 190 | 193 | if (!array_key_exists($input, $this->underscores)) { |
@@ -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(); |