This commit is contained in:
2023-04-10 17:20:48 +08:00
parent 94ebb18b7e
commit ee8b5fba20
3 changed files with 29 additions and 14 deletions
+12 -3
View File
@@ -808,15 +808,24 @@ trait QueryTrait
}
/**
* @param int $offset
* @param int $limit
*
* @return $this
*/
public function limit(int $offset, int $limit = 20): static
public function limit(int $limit = 20): static
{
$this->limit = $limit;
return $this;
}
/**
* @param int $offset
* @return $this
*/
public function offset(int $offset): static
{
$this->offset = $offset;
$this->limit = $limit;
return $this;
}