Builder::limit( int $limit )

Set the limit for the current Query.


Parameters

$limit

(int) (Required) The limit to apply to the current query.


Top ↑

Return

($this) Instance to the current class.


Top ↑

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;
	}

Top ↑

Changelog

Changelog
Version Description
6.0.0 Introduced.