classArrayEntry
final class ArrayEntry
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
One element of a statically reconstructed array.
Properties§
public Domain|null $keypublic Domain $valueMethods§
public function scalarKey(): string|int|nullThe key when it resolved to a single scalar, otherwise null.
Returns
string|int|nullTest cases 5
Called from 1
public function signature(): stringA canonical string used to deduplicate arrays.
Returns
stringTest cases 1
Calls 1
- method-call Domain::signature() line 45
Test cases 83§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 6
ArrayEntryTest::testScalarKeyIsNullForANonStringScalarcallsArrayEntryTest::testScalarKeyIsNullWhenTheKeyDidNotResolvecallsArrayEntryTest::testScalarKeyIsNullWithoutAKeycallsArrayEntryTest::testScalarKeyReadsAResolvedIntegerKeycallsArrayEntryTest::testScalarKeyReadsAResolvedStringKeycallsArrayEntryTest::testSignatureCombinesKeyAndValuecalls
Other tests reaching this symbol 77
PairModel::evaluatecallsCatalogCommandTestcallsBuiltinCallModelTest::providerEvaluatecallsBuiltinCallModelTest::testImplodeJoinsTheElementsOfAKnownArraycallsBuiltinCallModelTest::testImplodeLeavesAGapWhenTheArrayIsIncompletecallsBuiltinCallModelTest::testImplodeOfAnIncompleteArrayEndsInAStringGapcallsBuiltinCallModelTest::testImplodeWithoutGlueJoinsTheElementsDirectlycallsBuiltinCallModelTest::testVsprintfTakesItsArgumentsFromAnArraycallsCallEvaluatorTestcallsCalleeReturnsTest::testCacheableRejectsAllocationsEvenInsideArrayscallsCallbackEffectsTestcallsObjectEffectsTestcallsSliceExecutorTest::providerAnyElementcallsSliceExecutorTest::providerIteratecallsSliceExecutorTest::testAnyElementOfAnArrayKnownOnlyInPartQuotesTheIteratedValuecallsSliceExecutorTest::testApplyGoesOnFromThePassAForeachReachedOverWhatItFirstReadcallsSliceExecutorTest::testApplySplitsAForeachPastItsElementsWithinTheLimitcallsSliceExecutorTest::testApplyStartsAForeachByReadingWhatItGoesOvercallsSliceExecutorTest::testIterateWithoutAKeyBindsOnlyTheValuecallsExpressionEvaluatorTestcallsNamedModelTestcallsInterpreterTestcallsReferenceEvaluatorTest::testAssignListDescendsIntoANestedListcallsReferenceEvaluatorTest::testAssignListLeavesAGapForAnElementTheArrayDoesNotHoldcallsReferenceEvaluatorTest::testAssignListReadsAKeyedTargetByItsKeycallsReferenceEvaluatorTest::testAssignListWritesEachElementIntoTheTargetAtItsPositioncallsReferenceEvaluatorTest::testLoseTrackMarksTheArrayANestedWriteGoesIntoAsIncompletecallsReferenceEvaluatorTest::testReadArrayKeepsTheElementsWrittenAfterAnUnpackingcallsValueBinderTest::testBindOneRecordReadsAnArrayOfValuescallsValueBinderTest::testBindValuesReachesEveryStatementcallsArrayTermTest::testAnyValueIsTheUnionOfEveryElementcallsArrayTermTest::testAnyValueOfAnArrayKnownOnlyInPartKeepsAGapWhereItWasReadcallsArrayTermTest::testElementFindsAnElementByItsKeycallsArrayTermTest::testElementNeverReadsAnElementUnderABooleanOrANullKeycallsArrayTermTest::testNamedKeepsStringKeyedElementscallsArrayTermTest::testPositionalKeepsUnkeyedAndIntegerKeyedElementscallsDomainTest::testSelectClaimsNothingItCannotReadcallsDomainTest::testSelectKeepsAGapForAnArrayKnownOnlyInPartcallsDomainTest::testSelectKeepsTheElementsMarkedAsCombinedWhenTheKeysWerecallsDomainTest::testSelectReadsAcrossEveryArrayAlternativecallsDomainTest::testSelectReadsEachElementAKeyWithSeveralValuesNamescallsDomainTest::testSelectReadsEveryElementUnderAKeyThatDidNotResolvecallsDomainTest::testSelectReadsTheElementUnderAResolvedKeycallsDomainTest::testSoleArrayOnlyAnswersForOneArraycallsObjectMemoryTest::testImportDoesNotOverwriteAMutatedObjectWithAnOldAliascallsObjectMemoryTest::testInvalidateOpensAliasedObjectsInsideArraysAndKeepsUntrackedValuescallsObjectMemoryTest::testReadRefreshesObjectsStoredInArrayscallsDialectTest::testInsertPrefixComesFromThePolicycallsDialectTest::testInsertSuffixComesFromThePolicycallsDialectTest::testReturningSuffixComesFromThePolicycallsBuilderCallsTestcallsBuilderQueriesTestcallsCallbackModelTestcallsCallModelTestcallsClausesTest::testColumnsRequiresCompletePositionalArrayscallsClausesTest::testGroupAppendsIdentifiersAndRetainsUnknownColumnscallsGrammarTestcallsModelMetadataTestcallsPredicatesTest::testEntryReadsKeyedComparisonsAndPositionalArgumentListscallsPredicatesTest::testGroupNestsArrayEntriesInParenthesesWithTheOuterBooleancallsPredicatesTest::testInPreservesValuesFromAssociativeArraysAndRejectsNestedArrayscallsPredicatesTest::testNullsDoesNotDropUnknownColumnsOrAssociativeValuescallsQueryStateTestcallsSelectCompilerTestcallsWriteCompilerTest::testCompileDoesNotInterpretACompleteRowAsAnUnknownWriteOperationcallsWriteCompilerTest::testCompileSelectsTheWriteOperationcallsWriteCompilerTest::testInsertGetIdReturnsTheKeyOnlyWhereTheDialectAsksForItcallsWriteCompilerTest::testInsertRejectsBulkRowsWithDifferentColumnscallsWriteCompilerTest::testInsertSortsBothColumnNamesAndValuesAcrossBulkRowscallsWriteCompilerTest::testInsertUsesEachDialectsIgnoreSyntaxAndPreservesColumnOrdercallsWriteCompilerTest::testRowsSortsBulkKeysAndRejectsIncompleteRowscallsWriteCompilerTest::testStepWritesLaravelsRawArithmeticBeforeExtraColumnscallsWriteCompilerTest::testUpdateOrdersAssignmentsBeforePredicateBindingscallsAnalyzerTestcallsConfigurationTestcallsJsonReporterTestcallsTextReporterTestcalls
Relations§
Instantiated in 9
- new SqlCatalog\Core\Analysis\BuiltinCallModel::fill() packages/sql-catalog/src/Core/Analysis/BuiltinCallModel.php:244
- new SqlCatalog\Core\Analysis\ReferenceEvaluator::readArray() packages/sql-catalog/src/Core/Analysis/ReferenceEvaluator.php:122
- new SqlCatalog\Core\Analysis\ReferenceEvaluator::assignElement() packages/sql-catalog/src/Core/Analysis/ReferenceEvaluator.php:382
- new SqlCatalog\Core\Evaluation\ObjectMemory::read() packages/sql-catalog/src/Core/Evaluation/ObjectMemory.php:82
- new SqlCatalog\Core\Evaluation\ObjectMemory::invalidate() packages/sql-catalog/src/Core/Evaluation/ObjectMemory.php:135
- new SqlCatalog\Extension\Laravel\BuilderCalls::unsupported() packages/sql-catalog/src/Extension/Laravel/BuilderCalls.php:308
- new SqlCatalog\Extension\Laravel\QueryState::list() packages/sql-catalog/src/Extension/Laravel/QueryState.php:75
- new SqlCatalog\Extension\Laravel\QueryState::array() packages/sql-catalog/src/Extension/Laravel/QueryState.php:103
- new SqlCatalog\Extension\Laravel\WriteCompiler::step() packages/sql-catalog/src/Extension/Laravel/WriteCompiler.php:96
Method calls 1
Type declarations 8
- type SqlCatalog\Core\Evaluation\ObjectMemory::read() packages/sql-catalog/src/Core/Evaluation/ObjectMemory.php:82
- type SqlCatalog\Core\Evaluation\ObjectMemory::invalidate() packages/sql-catalog/src/Core/Evaluation/ObjectMemory.php:135
- type SqlCatalog\Extension\Laravel\BuilderCalls::unsupported() packages/sql-catalog/src/Extension/Laravel/BuilderCalls.php:308
- type SqlCatalog\Extension\Laravel\Grammar::rawBindings() packages/sql-catalog/src/Extension/Laravel/Grammar.php:153
- type SqlCatalog\Extension\Laravel\Predicates packages/sql-catalog/src/Extension/Laravel/Predicates.php:159
- type SqlCatalog\Extension\Laravel\Predicates::nulls() packages/sql-catalog/src/Extension/Laravel/Predicates.php:185
- type SqlCatalog\Extension\Laravel\Predicates::in() packages/sql-catalog/src/Extension/Laravel/Predicates.php:207
- type SqlCatalog\Extension\Laravel\Predicates::between() packages/sql-catalog/src/Extension/Laravel/Predicates.php:229