@@ -190,6 +190,10 @@ |
||
190 | 190 | return $return; |
191 | 191 | } |
192 | 192 | |
193 | + /** |
|
194 | + * @param integer $level |
|
195 | + * @param string $opr |
|
196 | + */ |
|
193 | 197 | private function parseRightExpression($level, $opr) { |
194 | 198 | switch ($opr) { |
195 | 199 | case 'between': return $this->parseBetween(); |
@@ -103,6 +103,9 @@ |
||
103 | 103 | return $relationshipDetails; |
104 | 104 | } |
105 | 105 | |
106 | + /** |
|
107 | + * @param string $type |
|
108 | + */ |
|
106 | 109 | private function createRelationships($type, $relationships) |
107 | 110 | { |
108 | 111 | foreach ($relationships as $relationship) { |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | |
149 | 149 | /** |
150 | 150 | * @method |
151 | - * @param type $name |
|
151 | + * @param string $name |
|
152 | 152 | * @param type $arguments |
153 | 153 | * @return type |
154 | 154 | */ |
@@ -172,6 +172,10 @@ discard block |
||
172 | 172 | return $this->retrieveItem($name); |
173 | 173 | } |
174 | 174 | |
175 | + /** |
|
176 | + * @param Relationship[] $relationships |
|
177 | + * @param integer $depth |
|
178 | + */ |
|
175 | 179 | private function expandArrayValue($array, $relationships, $depth, $index = null) |
176 | 180 | { |
177 | 181 | foreach ($relationships as $name => $relationship) { |
@@ -359,6 +363,9 @@ discard block |
||
359 | 363 | |
360 | 364 | } |
361 | 365 | |
366 | + /** |
|
367 | + * @param string $id |
|
368 | + */ |
|
362 | 369 | public function postSaveCallback($id) |
363 | 370 | { |
364 | 371 | |
@@ -387,7 +394,7 @@ discard block |
||
387 | 394 | |
388 | 395 | /** |
389 | 396 | * |
390 | - * @return DataAdapter |
|
397 | + * @return DriverAdapter |
|
391 | 398 | */ |
392 | 399 | public function getAdapter() |
393 | 400 | { |
@@ -23,6 +23,9 @@ |
||
23 | 23 | 'save', 'validate' |
24 | 24 | ]; |
25 | 25 | |
26 | + /** |
|
27 | + * @param string $table |
|
28 | + */ |
|
26 | 29 | public function __construct(RecordWrapper $wrapper, $table) |
27 | 30 | { |
28 | 31 | $this->wrapper = $wrapper; |
@@ -4,8 +4,8 @@ |
||
4 | 4 | |
5 | 5 | use ntentan\atiaa\DbContext; |
6 | 6 | use ntentan\kaikai\Cache; |
7 | -use ntentan\nibii\interfaces\ModelFactoryInterface; |
|
8 | 7 | use ntentan\nibii\interfaces\DriverAdapterFactoryInterface; |
8 | +use ntentan\nibii\interfaces\ModelFactoryInterface; |
|
9 | 9 | use ntentan\nibii\interfaces\ValidatorFactoryInterface; |
10 | 10 | |
11 | 11 | /** |
@@ -89,6 +89,9 @@ |
||
89 | 89 | return $this->config; |
90 | 90 | } |
91 | 91 | |
92 | + /** |
|
93 | + * @param RecordWrapper $model |
|
94 | + */ |
|
92 | 95 | public function getModelDescription($model) : ModelDescription |
93 | 96 | { |
94 | 97 | return new ModelDescription($model); |
@@ -27,7 +27,6 @@ |
||
27 | 27 | namespace ntentan\nibii\relationships; |
28 | 28 | |
29 | 29 | use ntentan\utils\Text; |
30 | -use ntentan\nibii\ORMContext; |
|
31 | 30 | |
32 | 31 | class HasManyRelationship extends \ntentan\nibii\Relationship { |
33 | 32 |
@@ -26,10 +26,10 @@ |
||
26 | 26 | |
27 | 27 | namespace ntentan\nibii\relationships; |
28 | 28 | |
29 | -use ntentan\utils\Text; |
|
30 | 29 | use ntentan\nibii\NibiiException; |
31 | -use ntentan\nibii\Relationship; |
|
32 | 30 | use ntentan\nibii\ORMContext; |
31 | +use ntentan\nibii\Relationship; |
|
32 | +use ntentan\utils\Text; |
|
33 | 33 | |
34 | 34 | class ManyHaveManyRelationship extends Relationship |
35 | 35 | { |
@@ -226,7 +226,7 @@ |
||
226 | 226 | /** |
227 | 227 | * |
228 | 228 | * @param array $data |
229 | - * @param type $mode |
|
229 | + * @param integer $mode |
|
230 | 230 | * @return bool|array |
231 | 231 | */ |
232 | 232 | private function validate(array $data, int $mode) |
@@ -17,5 +17,10 @@ |
||
17 | 17 | */ |
18 | 18 | interface ValidatorFactoryInterface |
19 | 19 | { |
20 | + /** |
|
21 | + * @param integer $mode |
|
22 | + * |
|
23 | + * @return \ntentan\nibii\DefaultValidator |
|
24 | + */ |
|
20 | 25 | public function createModelValidator(RecordWrapper $model, $mode); |
21 | 26 | } |