@ -124,11 +124,11 @@ class SqlCriteria
}
/**
* @param $limit int
* @param $offset int
* @return SqlCriteria
*/
public function limit($limit, $offset = 0)
public function limit($offset = 0, $limit)
{
if ($offset) {
$this->limit = (int) $offset . ',';