@@ -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); |
@@ -26,8 +26,8 @@ |
||
26 | 26 | |
27 | 27 | namespace ntentan\nibii\relationships; |
28 | 28 | |
29 | -use ntentan\utils\Text; |
|
30 | 29 | use ntentan\nibii\ORMContext; |
30 | +use ntentan\utils\Text; |
|
31 | 31 | |
32 | 32 | class BelongsToRelationship extends \ntentan\nibii\Relationship { |
33 | 33 |
@@ -26,8 +26,8 @@ |
||
26 | 26 | |
27 | 27 | namespace ntentan\nibii\relationships; |
28 | 28 | |
29 | -use ntentan\utils\Text; |
|
30 | 29 | use ntentan\nibii\ORMContext; |
30 | +use ntentan\utils\Text; |
|
31 | 31 | |
32 | 32 | class HasManyRelationship extends \ntentan\nibii\Relationship { |
33 | 33 |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use ntentan\nibii\interfaces\ModelClassResolverInterface; |
6 | 6 | use ntentan\nibii\interfaces\ModelJoinerInterface; |
7 | 7 | use ntentan\nibii\interfaces\TableNameResolverInterface; |
8 | -use ntentan\config\Config; |
|
9 | 8 | use ntentan\utils\Text; |
10 | 9 | |
11 | 10 | /** |
@@ -26,8 +26,8 @@ |
||
26 | 26 | |
27 | 27 | namespace ntentan\nibii; |
28 | 28 | |
29 | -use ntentan\utils\validator\Validation; |
|
30 | 29 | use ntentan\panie\Container; |
30 | +use ntentan\utils\validator\Validation; |
|
31 | 31 | |
32 | 32 | class UniqueValidation extends Validation |
33 | 33 | { |
@@ -26,9 +26,9 @@ |
||
26 | 26 | |
27 | 27 | namespace ntentan\nibii\relationships; |
28 | 28 | |
29 | -use ntentan\utils\Text; |
|
30 | -use ntentan\nibii\ORMContext; |
|
31 | 29 | use ntentan\nibii\NibiiException; |
30 | +use ntentan\nibii\ORMContext; |
|
31 | +use ntentan\utils\Text; |
|
32 | 32 | |
33 | 33 | class ManyHaveManyRelationship extends \ntentan\nibii\Relationship |
34 | 34 | { |