Completed
Push — master ( d6ee9b...caa057 )
by James Ekow Abaka
02:40
created
src/interfaces/TableNameResolverInterface.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -9,5 +9,8 @@
 block discarded – undo
9 9
  */
10 10
 interface TableNameResolverInterface
11 11
 {
12
+    /**
13
+     * @return string
14
+     */
12 15
     public function getTableName($instance);
13 16
 }
Please login to merge, or discard this patch.
src/interfaces/ModelJoinerInterface.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -9,5 +9,8 @@
 block discarded – undo
9 9
  */
10 10
 interface ModelJoinerInterface
11 11
 {
12
+    /**
13
+     * @return string
14
+     */
12 15
     public function getJunctionClassName($classA, $classB);
13 16
 }
Please login to merge, or discard this patch.
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/DataOperations.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -227,6 +227,9 @@
 block discarded – undo
227 227
         }
228 228
     }
229 229
 
230
+    /**
231
+     * @param string $event
232
+     */
230 233
     private function runBehaviours($event, $args) {
231 234
         foreach ($this->wrapper->getBehaviours() as $behaviour) {
232 235
             $args[0] = call_user_func_array([$behaviour, $event], $args);
Please login to merge, or discard this patch.
src/DriverAdapter.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -118,6 +118,9 @@
 block discarded – undo
118 118
         return $this->queryEngine;
119 119
     }
120 120
 
121
+    /**
122
+     * @param RecordWrapper $model
123
+     */
121 124
     public function setModel($model) {
122 125
         $this->modelInstance = $model;
123 126
     }
Please login to merge, or discard this patch.
src/FilterCompiler.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -190,6 +190,10 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/ModelDescription.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -90,6 +90,9 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Operations.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -22,6 +22,11 @@
 block discarded – undo
22 22
         'save'
23 23
     ];
24 24
 
25
+    /**
26
+     * @param RecordWrapper $wrapper
27
+     * @param DriverAdapter $adapter
28
+     * @param string $table
29
+     */
25 30
     public function __construct($wrapper, $adapter, $table) {
26 31
         $this->wrapper = $wrapper;
27 32
         $this->adapter = $adapter;
Please login to merge, or discard this patch.
src/QueryEngine.php 1 patch
Doc Comments   +18 added lines patch added patch discarded remove patch
@@ -6,10 +6,16 @@  discard block
 block discarded – undo
6 6
 
7 7
     private $db;
8 8
 
9
+    /**
10
+     * @param \ntentan\atiaa\Driver $driver
11
+     */
9 12
     public function setDriver($driver) {
10 13
         $this->db = $driver;
11 14
     }
12 15
  
16
+    /**
17
+     * @param string $query
18
+     */
13 19
     private function filter($query) {
14 20
         return $query;
15 21
     }
@@ -39,6 +45,9 @@  discard block
 block discarded – undo
39 45
         );
40 46
     }
41 47
 
48
+    /**
49
+     * @return string
50
+     */
42 51
     public function getBulkUpdateQuery($data, $parameters) {
43 52
         $updateData = [];
44 53
         foreach ($data as $field => $value) {
@@ -84,6 +93,9 @@  discard block
 block discarded – undo
84 93
         );
85 94
     }
86 95
 
96
+    /**
97
+     * @return string
98
+     */
87 99
     public function getSelectQuery($parameters) {
88 100
         return $this->filter(sprintf(
89 101
                 "SELECT %s FROM %s%s%s%s%s", 
@@ -97,6 +109,9 @@  discard block
 block discarded – undo
97 109
         );
98 110
     }
99 111
 
112
+    /**
113
+     * @return string
114
+     */
100 115
     public function getCountQuery($parameters) {
101 116
         return $this->filter(sprintf(
102 117
                 "SELECT count(*) as count FROM %s%s", 
@@ -106,6 +121,9 @@  discard block
 block discarded – undo
106 121
         );
107 122
     }
108 123
 
124
+    /**
125
+     * @return string
126
+     */
109 127
     public function getDeleteQuery($parameters) {
110 128
         return $this->filter(sprintf(
111 129
                 "DELETE FROM %s%s", 
Please login to merge, or discard this patch.