@@ -36,6 +36,9 @@ discard block |
||
36 | 36 | ->getJunctionClassName($classA, $classB); |
37 | 37 | } |
38 | 38 | |
39 | + /** |
|
40 | + * @param RecordWrapper $instance |
|
41 | + */ |
|
39 | 42 | public static function getModelTable($instance) { |
40 | 43 | return InjectionContainer::singleton(interfaces\TableNameResolverInterface::class) |
41 | 44 | ->getTableName($instance); |
@@ -46,6 +49,9 @@ discard block |
||
46 | 49 | ->getModelClassName($model, $context); |
47 | 50 | } |
48 | 51 | |
52 | + /** |
|
53 | + * @param string $class |
|
54 | + */ |
|
49 | 55 | public static function getModelName($class) { |
50 | 56 | return $class; |
51 | 57 | } |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | |
97 | 97 | /** |
98 | 98 | * @method |
99 | - * @param type $name |
|
99 | + * @param string $name |
|
100 | 100 | * @param type $arguments |
101 | 101 | * @return type |
102 | 102 | */ |
@@ -126,6 +126,10 @@ discard block |
||
126 | 126 | return $this->table; |
127 | 127 | } |
128 | 128 | |
129 | + /** |
|
130 | + * @param Relationship[] $relationships |
|
131 | + * @param integer $depth |
|
132 | + */ |
|
129 | 133 | private function expandArrayValue($array, $relationships, $depth, $index = null) { |
130 | 134 | foreach ($relationships as $name => $relationship) { |
131 | 135 | $array[$name] = $this->fetchRelatedFields($relationship, $index)->toArray($depth); |