GreaterLessOperators
Trait to represent greater/less operators.
Table of Contents
Methods
- gt() : PostgrestRequestBuilder
- Greater than operator.
- gte() : PostgrestRequestBuilder
- Greater than or equal operator.
- lt() : PostgrestRequestBuilder
- Less than operator.
- lte() : PostgrestRequestBuilder
- Less than or equal operator.
- greaterLessHelper() : PostgrestRequestBuilder
- Greater than operator helper.
Methods
gt()
Greater than operator.
public
gt(string $columnName, string|int|float ...$value) : PostgrestRequestBuilder
Parameters
- $columnName : string
-
The name of the column.
- $value : string|int|float
-
The value(s) to use.
Tags
Return values
PostgrestRequestBuilder —The PostgrestRequestBuilder instance.
gte()
Greater than or equal operator.
public
gte(string $columnName, string|int|float ...$value) : PostgrestRequestBuilder
Parameters
- $columnName : string
-
The name of the column.
- $value : string|int|float
-
The value(s) to use.
Tags
Return values
PostgrestRequestBuilder —The PostgrestRequestBuilder instance.
lt()
Less than operator.
public
lt(string $columnName, string|int|float ...$value) : PostgrestRequestBuilder
Parameters
- $columnName : string
-
The name of the column.
- $value : string|int|float
-
The value(s) to use.
Tags
Return values
PostgrestRequestBuilder —The PostgrestRequestBuilder instance.
lte()
Less than or equal operator.
public
lte(string $columnName, string|int|float ...$value) : PostgrestRequestBuilder
Parameters
- $columnName : string
-
The name of the column.
- $value : string|int|float
-
The value(s) to use.
Tags
Return values
PostgrestRequestBuilder —The PostgrestRequestBuilder instance.
greaterLessHelper()
Greater than operator helper.
private
greaterLessHelper(Operator $op, string $columnName, string|int|float ...$value) : PostgrestRequestBuilder
Prevents code duplication.
Parameters
- $op : Operator
-
The operator to use.
- $columnName : string
-
The name of the column.
- $value : string|int|float
-
The value(s) to use.
Tags
Return values
PostgrestRequestBuilder —The PostgrestRequestBuilder instance.