@@ -237,6 +237,9 @@ |
||
237 | 237 | } |
238 | 238 | } |
239 | 239 | |
240 | + /** |
|
241 | + * @param string $event |
|
242 | + */ |
|
240 | 243 | private function runBehaviours($event, $args) |
241 | 244 | { |
242 | 245 | foreach($this->wrapper->getBehaviours() as $behaviour) { |
@@ -204,6 +204,10 @@ |
||
204 | 204 | return $return; |
205 | 205 | } |
206 | 206 | |
207 | + /** |
|
208 | + * @param integer $level |
|
209 | + * @param string $opr |
|
210 | + */ |
|
207 | 211 | private function parseRightExpression($level, $opr) |
208 | 212 | { |
209 | 213 | switch ($opr) { |
@@ -45,6 +45,9 @@ discard block |
||
45 | 45 | } |
46 | 46 | } |
47 | 47 | |
48 | + /** |
|
49 | + * @param RecordWrapper $instance |
|
50 | + */ |
|
48 | 51 | public static function getModelTable($instance) |
49 | 52 | { |
50 | 53 | if(self::$tableResolver) { |
@@ -68,6 +71,9 @@ discard block |
||
68 | 71 | return $className; |
69 | 72 | } |
70 | 73 | |
74 | + /** |
|
75 | + * @param string $class |
|
76 | + */ |
|
71 | 77 | public static function getModelName($class) |
72 | 78 | { |
73 | 79 | if(self::$modelResolver) { |
@@ -23,6 +23,10 @@ |
||
23 | 23 | 'save' |
24 | 24 | ]; |
25 | 25 | |
26 | + /** |
|
27 | + * @param RecordWrapper $wrapper |
|
28 | + * @param DriverAdapter $adapter |
|
29 | + */ |
|
26 | 30 | public function __construct($wrapper, $adapter) |
27 | 31 | { |
28 | 32 | $this->wrapper = $wrapper; |
@@ -23,7 +23,6 @@ discard block |
||
23 | 23 | |
24 | 24 | /** |
25 | 25 | * |
26 | - * @param \ $model |
|
27 | 26 | */ |
28 | 27 | public function __construct($wrapper) |
29 | 28 | { |
@@ -118,6 +117,9 @@ discard block |
||
118 | 117 | $this->boundData += $values; |
119 | 118 | } |
120 | 119 | |
120 | + /** |
|
121 | + * @param boolean $firstOnly |
|
122 | + */ |
|
121 | 123 | public function setFirstOnly($firstOnly) |
122 | 124 | { |
123 | 125 | $this->firstOnly = $firstOnly; |
@@ -139,6 +141,9 @@ discard block |
||
139 | 141 | $this->offset = $offset; |
140 | 142 | } |
141 | 143 | |
144 | + /** |
|
145 | + * @param string $field |
|
146 | + */ |
|
142 | 147 | public function addSort($field, $direction = 'ASC') |
143 | 148 | { |
144 | 149 | $this->sorts[] = "$field $direction"; |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | |
124 | 124 | /** |
125 | 125 | * @method |
126 | - * @param type $name |
|
126 | + * @param string $name |
|
127 | 127 | * @param type $arguments |
128 | 128 | * @return type |
129 | 129 | */ |
@@ -157,6 +157,9 @@ discard block |
||
157 | 157 | return $this->table; |
158 | 158 | } |
159 | 159 | |
160 | + /** |
|
161 | + * @param integer $depth |
|
162 | + */ |
|
160 | 163 | private function expandArrayValue($array, $relationships, $depth, $index = null) |
161 | 164 | { |
162 | 165 | foreach($relationships as $name => $relationship) { |
@@ -11,6 +11,9 @@ |
||
11 | 11 | $this->db = $driver; |
12 | 12 | } |
13 | 13 | |
14 | + /** |
|
15 | + * @param string $query |
|
16 | + */ |
|
14 | 17 | private function filter($query) |
15 | 18 | { |
16 | 19 | return $query; |