BoundsScope
extends BaseScope
in package
Class BoundsScope.
Table of Contents
Constants
- DEFAULT_LAT_FIELD = 'location_latitude'
- DEFAULT_LNG_FIELD = 'location_longitude'
Properties
Methods
- apply() : mixed
- applyQueryBuilder() : void
- getBounds() : array<string|int, mixed>|null
- getTable() : string|null
- likeOperator() : string
- return the case-insensitive LIKE operator bases on the current database driver.
- setBounds() : $this
- alias() : string
Constants
DEFAULT_LAT_FIELD
public
mixed
DEFAULT_LAT_FIELD
= 'location_latitude'
DEFAULT_LNG_FIELD
public
mixed
DEFAULT_LNG_FIELD
= 'location_longitude'
Properties
$bounds
protected
array<string|int, mixed>|null
$bounds
= null
$table
protected
string|null
$table
= null
Methods
apply()
public
apply(Builder $builder, Model $model) : mixed
Parameters
- $builder : Builder
- $model : Model
applyQueryBuilder()
public
applyQueryBuilder(Builder $builder) : void
Parameters
- $builder : Builder
getBounds()
public
getBounds() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|nullgetTable()
public
getTable() : string|null
Return values
string|nulllikeOperator()
return the case-insensitive LIKE operator bases on the current database driver.
public
likeOperator() : string
Return values
stringsetBounds()
public
setBounds(array<string|int, mixed>|null $bounds) : $this
Parameters
- $bounds : array<string|int, mixed>|null
Return values
$thisalias()
protected
alias(string $table, string $column) : string
Parameters
- $table : string
- $column : string