classModelContext
final class ModelContext
Public API: explicitly declared with
@visibility public.Shared source metadata and bounded callback evaluation available to extensions.
$index = new \SqlCatalog\Core\Php\ProgramIndex();
$budget = new \SqlCatalog\Core\Analysis\EvaluationBudget();
$names = new \SqlCatalog\Core\Analysis\Derivation\FreeNames();
$modified = new \SqlCatalog\Core\Analysis\Derivation\ModifiedNames($names);
$callbacks = new \SqlCatalog\Core\Analysis\Derivation\Objects\CallbackEffects(new \SqlCatalog\Core\Analysis\Derivation\Slice\BackwardSlicer(new \SqlCatalog\Core\Analysis\Derivation\SourceTree([]), $budget, $names, $modified), new \SqlCatalog\Core\Analysis\Derivation\SliceExecutor(new \SqlCatalog\Core\Php\DeclaredGlobals(), new \SqlCatalog\Core\Php\TypeReader(), $modified, new \SqlCatalog\Core\Php\NodeText(), $budget));
$modelContext = new \SqlCatalog\Core\Extension\Model\ModelContext($index, $callbacks, 'application');
$modelContext->dialect // => 'application'Properties§
public ProgramIndex $indexpublic CallbackEffects $callbackspublic ?string $dialect = nullMethods§
public function __construct(
public ProgramIndex $index,
public CallbackEffects $callbacks,
public ?string $dialect = null,
)The services of the current analysis; no application code is executed.
Parameters
$index | ProgramIndex | |
$callbacks | CallbackEffects | |
$dialect | ?string |
Test cases 7§
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 6
Relations§
Instantiated in 1
Type declarations 3
- type SqlCatalog\Core\Extension\Model\ModelProviderInterface packages/sql-catalog/src/Core/Extension/Model/ModelProviderInterface.php:32
- type SqlCatalog\Extension\Laravel\CallModel packages/sql-catalog/src/Extension/Laravel/CallModel.php:25
- type SqlCatalog\Extension\Laravel\LaravelExtension packages/sql-catalog/src/Extension/Laravel/LaravelExtension.php:96