class Operator extends Component (View source)

Traits

Properties

protected string $evaluationIdentifier
static protected Closure>> $macros from  Macroable
protected bool|Closure $isHidden from  CanBeHidden
protected bool|Closure $isVisible from  CanBeHidden
protected Constraint|null $constraint
protected array<string,mixed> $settings
protected bool|null $isInverse
protected string|null $name
protected string|Closure|null $label
protected string|Closure|null $summary
protected Closure|null $modifyQueryUsing
protected Closure|null $modifyBaseQueryUsing

Methods

static mixed
configureUsing(Closure $modifyUsing, Closure|null $during = null, bool $isImportant = false)

No description

configure()

No description

void
setUp()

No description

mixed
evaluate(mixed $value, array $namedInjections = [], array $typedInjections = [])

No description

mixed
resolveClosureDependencyForEvaluation(ReflectionParameter $parameter, array $namedInjections, array $typedInjections)

No description

array
resolveDefaultClosureDependencyForEvaluationByName(string $parameterName)

No description

array
resolveDefaultClosureDependencyForEvaluationByType(string $parameterType)

No description

string|null
static void
macro(string $name, callable $macro)

No description

static void
mixin(object $mixin, bool $replace = true)

No description

static void
flushMacros()

No description

static mixed
__callStatic(string $method, array $parameters)

No description

mixed
__call(string $method, array $parameters)

No description

static callable|null
getMacro(string $method)

No description

hidden(bool|Closure $condition = true)

No description

visible(bool|Closure $condition = true)

No description

bool
isHidden()

No description

bool
isVisible()

No description

__construct(string|null $name = null)

No description

static Operator
make(string|null $name = null)

No description

name(string|null $name)

No description

label(string|Closure|null $label)

No description

summary(string|Closure|null $summary)

No description

query(Closure|null $callback)

No description

baseQuery(Closure|null $callback)

No description

modifyQueryUsing(Closure|null $callback)

No description

modifyBaseQueryUsing(Closure|null $callback)

No description

string
getName()

No description

string
getLabel()

No description

string
getSummary()

No description

Builder
apply(Builder $query, string $qualifiedColumn)

No description

Builder
applyToBaseQuery(Builder $query)

No description

Builder
applyToBaseFilterQuery(Builder $query)

No description

array
getFormSchema()

No description

constraint(Constraint|null $constraint)

No description

settings(array|null $settings)

No description

inverse(bool|null $condition = true)

No description

Constraint|null
getConstraint()

No description

array|null
getSettings()

No description

bool|null
isInverse()

No description

bool
bool
hasQueryModificationCallback()

No description

bool

Details

static mixed configureUsing(Closure $modifyUsing, Closure|null $during = null, bool $isImportant = false)

No description

Parameters

Closure $modifyUsing
Closure|null $during
bool $isImportant

Return Value

mixed

Configurable configure()

No description

Return Value

Configurable

protected void setUp()

No description

Return Value

void

mixed evaluate(mixed $value, array $namedInjections = [], array $typedInjections = [])

No description

Parameters

mixed $value
array $namedInjections
array $typedInjections

Return Value

mixed

protected mixed resolveClosureDependencyForEvaluation(ReflectionParameter $parameter, array $namedInjections, array $typedInjections)

No description

Parameters

ReflectionParameter $parameter
array $namedInjections
array $typedInjections

Return Value

mixed

protected array resolveDefaultClosureDependencyForEvaluationByName(string $parameterName)

No description

Parameters

string $parameterName

Return Value

array

protected array resolveDefaultClosureDependencyForEvaluationByType(string $parameterType)

No description

Parameters

string $parameterType

Return Value

array

protected string|null getTypedReflectionParameterClassName(ReflectionParameter $parameter)

No description

Parameters

ReflectionParameter $parameter

Return Value

string|null

static void macro(string $name, callable $macro)

No description

Parameters

string $name
callable $macro

Return Value

void

static void mixin(object $mixin, bool $replace = true)

No description

Parameters

object $mixin
bool $replace

Return Value

void

static void flushMacros()

No description

Return Value

void

static mixed __callStatic(string $method, array $parameters)

No description

Parameters

string $method
array $parameters

Return Value

mixed

mixed __call(string $method, array $parameters)

No description

Parameters

string $method
array $parameters

Return Value

mixed

static protected callable|null getMacro(string $method)

No description

Parameters

string $method

Return Value

callable|null

CanBeHidden hidden(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

CanBeHidden

CanBeHidden visible(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

CanBeHidden

bool isHidden()

No description

Return Value

bool

bool isVisible()

No description

Return Value

bool

final __construct(string|null $name = null)

No description

Parameters

string|null $name

static Operator make(string|null $name = null)

No description

Parameters

string|null $name

Return Value

Operator

Operator name(string|null $name)

No description

Parameters

string|null $name

Return Value

Operator

Operator label(string|Closure|null $label)

No description

Parameters

string|Closure|null $label

Return Value

Operator

Operator summary(string|Closure|null $summary)

No description

Parameters

string|Closure|null $summary

Return Value

Operator

Operator query(Closure|null $callback)

No description

Parameters

Closure|null $callback

Return Value

Operator

Operator baseQuery(Closure|null $callback)

No description

Parameters

Closure|null $callback

Return Value

Operator

Operator modifyQueryUsing(Closure|null $callback)

No description

Parameters

Closure|null $callback

Return Value

Operator

Operator modifyBaseQueryUsing(Closure|null $callback)

No description

Parameters

Closure|null $callback

Return Value

Operator

string getName()

No description

Return Value

string

string getLabel()

No description

Return Value

string

string getSummary()

No description

Return Value

string

Builder apply(Builder $query, string $qualifiedColumn)

No description

Parameters

Builder $query
string $qualifiedColumn

Return Value

Builder

Builder applyToBaseQuery(Builder $query)

No description

Parameters

Builder $query

Return Value

Builder

Builder applyToBaseFilterQuery(Builder $query)

No description

Parameters

Builder $query

Return Value

Builder

array getFormSchema()

No description

Return Value

array

Operator constraint(Constraint|null $constraint)

No description

Parameters

Constraint|null $constraint

Return Value

Operator

Operator settings(array|null $settings)

No description

Parameters

array|null $settings

Return Value

Operator

Operator inverse(bool|null $condition = true)

No description

Parameters

bool|null $condition

Return Value

Operator

Constraint|null getConstraint()

No description

Return Value

Constraint|null

array|null getSettings()

No description

Return Value

array|null

| null

bool|null isInverse()

No description

Return Value

bool|null

bool queriesRelationshipsUsingSubSelect()

No description

Return Value

bool

protected bool hasQueryModificationCallback()

No description

Return Value

bool

protected bool hasBaseQueryModificationCallback()

No description

Return Value

bool