mini\Database\PartialQuery::limit()
Method
public
Signature
public function limit(int $limit): self
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$limit |
int |
required | Documentation missing |
Returns
self
Documentation
Set LIMIT (can only narrow, never expand)
PartialQuery represents a "window" into data. Limit can shrink the window but never expand it beyond what was originally available.
$q->limit(10)->limit(5); // limit becomes 5 (shrink OK)
$q->limit(10)->limit(20); // limit stays 10 (can't expand)