final class CallContext
Public API: explicitly declared with @visibility public.

A PHP call AST together with its evaluated inputs and shared object memory.

Inspecting a call without executing itdoctest
$node = new \PhpParser\Node\Expr\FuncCall(new \PhpParser\Node\Name('today_sql'));
    $expressions = (new \SqlCatalog\Core\Analysis\Interpreter(new \SqlCatalog\Core\Php\ProgramIndex(), []))->evaluatorFor();
    $call = new \SqlCatalog\Core\Extension\Model\CallContext($node, [], new \SqlCatalog\Core\Evaluation\Environment(), new \SqlCatalog\Core\Analysis\FunctionScope('query.php'), $expressions, name: 'today_sql');
    $call->name // => 'today_sql'

Properties§

public CallLike $node
public list<Domain> $arguments
public Environment $environment
public FunctionScope $scope
public ExpressionEvaluator $expressions
public ?string $name = null
public ?Domain $receiver = null
public ?string $className = null
public ?SinkSpec $sink = null

Methods§

public function __construct(
    public CallLike $node,
    public list<Domain> $arguments,
    public Environment $environment,
    public FunctionScope $scope,
    public ExpressionEvaluator $expressions,
    public ?string $name = null,
    public ?Domain $receiver = null,
    public ?string $className = null,
    public ?SinkSpec $sink = null,
)

Parameters

$nodeCallLike
$argumentslist<Domain>Values in source argument order, including unresolved values.
$environmentEnvironment
$scopeFunctionScope
$expressionsExpressionEvaluator
$name?string
$receiver?Domain
$className?string
$sink?SinkSpec

Test cases 22§

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

Dedicated tests 1
Other tests reaching this symbol 21

Relations§

Instantiated in 4
Type declarations 2