Builder::limit( int $limit )
Set the limit for the current Query.
Contents
Parameters
- $limit
-
(int) (Required) The limit to apply to the current query.
Return
($this) Instance to the current class.
Source
File: src/Events/Custom_Tables/V1/Models/Builder.php
public function limit( $limit ) {
$limit = (int) $limit;
if ( $limit >= 0 ) {
$this->limit = $limit;
}
return $this;
}
Changelog
| Version | Description |
|---|---|
| 6.0.0 | Introduced. |