Completed
Push — master ( 00db75...2b9193 )
by James Ekow Abaka
03:21
created
src/Nibii.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -36,6 +36,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/RecordWrapper.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.