@@ -9,5 +9,8 @@ |
||
9 | 9 | */ |
10 | 10 | interface TableNameResolverInterface |
11 | 11 | { |
12 | + /** |
|
13 | + * @return string |
|
14 | + */ |
|
12 | 15 | public function getTableName($instance); |
13 | 16 | } |
@@ -9,5 +9,8 @@ |
||
9 | 9 | */ |
10 | 10 | interface ModelJoinerInterface |
11 | 11 | { |
12 | + /** |
|
13 | + * @return string |
|
14 | + */ |
|
12 | 15 | public function getJunctionClassName($classA, $classB); |
13 | 16 | } |
@@ -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(); |
@@ -90,6 +90,9 @@ |
||
90 | 90 | return $relationshipDetails; |
91 | 91 | } |
92 | 92 | |
93 | + /** |
|
94 | + * @param string $type |
|
95 | + */ |
|
93 | 96 | private function createRelationships($type, $relationships) { |
94 | 97 | foreach ($relationships as $relationship) { |
95 | 98 | $relationship = $this->getRelationshipDetails($relationship); |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | |
147 | 147 | /** |
148 | 148 | * @method |
149 | - * @param type $name |
|
149 | + * @param string $name |
|
150 | 150 | * @param type $arguments |
151 | 151 | * @return type |
152 | 152 | */ |
@@ -176,6 +176,10 @@ discard block |
||
176 | 176 | return $this->retrieveItem($name); |
177 | 177 | } |
178 | 178 | |
179 | + /** |
|
180 | + * @param Relationship[] $relationships |
|
181 | + * @param integer $depth |
|
182 | + */ |
|
179 | 183 | private function expandArrayValue($array, $relationships, $depth, $index = null) { |
180 | 184 | foreach ($relationships as $name => $relationship) { |
181 | 185 | $array[$name] = $this->fetchRelatedFields($relationship, $index)->toArray($depth); |
@@ -336,6 +340,9 @@ discard block |
||
336 | 340 | |
337 | 341 | } |
338 | 342 | |
343 | + /** |
|
344 | + * @param string $id |
|
345 | + */ |
|
339 | 346 | public function postSaveCallback($id) { |
340 | 347 | |
341 | 348 | } |
@@ -360,7 +367,7 @@ discard block |
||
360 | 367 | |
361 | 368 | /** |
362 | 369 | * |
363 | - * @return DataAdapter |
|
370 | + * @return DriverAdapter |
|
364 | 371 | */ |
365 | 372 | public function getAdapter() { |
366 | 373 | $this->initialize(); |