@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | |
23 | 23 | /** |
24 | 24 | * |
25 | - * @param \ $model |
|
25 | + * @param string $table |
|
26 | 26 | */ |
27 | 27 | public function __construct($table) { |
28 | 28 | $this->table = $table; |
@@ -104,6 +104,9 @@ discard block |
||
104 | 104 | $this->boundData += $values; |
105 | 105 | } |
106 | 106 | |
107 | + /** |
|
108 | + * @param boolean $firstOnly |
|
109 | + */ |
|
107 | 110 | public function setFirstOnly($firstOnly) { |
108 | 111 | $this->firstOnly = $firstOnly; |
109 | 112 | return $this; |
@@ -121,6 +124,9 @@ discard block |
||
121 | 124 | $this->offset = $offset; |
122 | 125 | } |
123 | 126 | |
127 | + /** |
|
128 | + * @param string $field |
|
129 | + */ |
|
124 | 130 | public function addSort($field, $direction = 'ASC') { |
125 | 131 | $this->sorts[] = "$field $direction"; |
126 | 132 | } |