LimitScope
extends BaseScope
in package
Class BaseScope.
Table of Contents
Properties
- $limit : int|null
Methods
- __construct() : mixed
- apply() : mixed
- applyQueryBuilder() : void
- getLimit() : int|null
- likeOperator() : string
- return the case-insensitive LIKE operator bases on the current database driver.
- setLimit() : self
- alias() : string
Properties
$limit
private
int|null
$limit
Methods
__construct()
public
__construct([int|null $limit = null ]) : mixed
Parameters
- $limit : int|null = null
apply()
public
apply(Builder $builder, Model $model) : mixed
Parameters
- $builder : Builder
- $model : Model
applyQueryBuilder()
public
applyQueryBuilder(Builder $builder) : void
Parameters
- $builder : Builder
getLimit()
public
getLimit() : int|null
Return values
int|nulllikeOperator()
return the case-insensitive LIKE operator bases on the current database driver.
public
likeOperator() : string
Return values
stringsetLimit()
public
setLimit(int|null $limit) : self
Parameters
- $limit : int|null
Return values
selfalias()
protected
alias(string $table, string $column) : string
Parameters
- $table : string
- $column : string