final class BuilderCalls
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.

Laravel factories and mutations executed by the ordinary expression evaluator.

Constants§

public const QUERY = 'Illuminate\Database\Query\Builder'

The framework contract identified by query.

public const CONNECTION = 'Illuminate\Database\Connection'

The framework contract identified by connection.

public const FACADE = 'Illuminate\Support\Facades\DB'

The framework contract identified by facade.

public const CONNECTION_CONTRACTS = ['Illuminate\Database\ConnectionInterface', 'Illuminate\Database\DatabaseManage…

The framework contracts an injected connection is declared with, which share the connection's calls.

public const MAX_ALTERNATIVES = 8

How many builder alternatives one receiver keeps before its state is marked open.

Methods§

public function __construct(
    private ProgramIndex $index,
    private ?string $dialect = null,
    private ?CallbackModel $callbacks = null,
    private Dialects $dialects = new \SqlCatalog\Core\Sql\Dialects(),
)

Configures the source metadata and SQL grammar used by this model.

Parameters

$indexProgramIndex
$dialect?string
$callbacks?CallbackModel
$dialectsDialects
Calls 1
public function isBuilder(?string $className): bool
public function staticCall(
    string $className,
    string $method,
    list<Domain> $arguments,
    Environment $environment,
    ?CallLike $call = null,
    ?FunctionScope $scope = null,
    ?ExpressionEvaluator $expressions = null,
): ?Domain

Parameters

$classNamestring
$methodstring
$argumentslist<Domain>A modelled static factory, or null for other classes.
$environmentEnvironment
$call?CallLike
$scope?FunctionScope
$expressions?ExpressionEvaluator

Returns

Test cases 1
Called from 1
Calls 13
public function methodCall(
    Domain $receiver,
    string $method,
    list<Domain> $arguments,
    Environment $environment,
    ?CallLike $call = null,
    ?FunctionScope $scope = null,
    ?ExpressionEvaluator $expressions = null,
): ?Domain
public function bounded(list<Term> $terms, Domain $receiver): Domain

Parameters

$termslist<Term>Alternatives beyond the bound become one explicitly open state, never a lost effect.
$receiverDomain

Returns

Test cases 1
Called from 1
Calls 4
public function callback(
    CallLike $call,
    ObjectTerm $object,
    string $method,
    list<Domain> $arguments,
    Environment $environment,
    FunctionScope $scope,
    ExpressionEvaluator $expressions,
): ?Domain

Applies framework callback semantics while retaining the ordinary object's identity.

Parameters

$callCallLike
$objectObjectTerm
$methodstring
$argumentslist<Domain>
$environmentEnvironment
$scopeFunctionScope
$expressionsExpressionEvaluator

Returns

Test cases 1
Called from 2
Calls 1
public function connectionDialect(?string $class): ?string
public function allocate(string $class, QueryState $state): ObjectTerm

A fresh identity even when the same allocation executes repeatedly.

Parameters

$classstring
$stateQueryState

Returns

Test cases 16
Called from 4
Calls 2
public function positional(list<Arg> $arguments): bool

Private surface 7§

Implementation details, listed for orientation only.

private const IDENTITY = ['query', 'newquery', 'tobase', 'getquery', 'withoutglobalscopes', 'withoutglob…
private const EXECUTIONS = ['get', 'all', 'pluck', 'count', 'sum', 'avg', 'min', 'max', 'exists', 'doesnte…
private int $allocations = 0
private ProgramIndex $index
private ?string $dialect = null
private ?CallbackModel $callbacks = null
private Dialects $dialects = new \SqlCatalog\Core\Sql\Dialects()

Test cases 34§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 22
Other tests reaching this symbol 12

Relations§

Instantiated in 3
Method calls 8
Constant reads 1
Type declarations 1