classPlanStatements
final class PlanStatements
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
Splits plans outside quoted identifiers, literals, groups and choice blocks.
Methods§
public function split(string $plan): array<int, string>Parameters
$plan | string |
Returns
array<int, string>Test cases 2
Called from 1
Calls 8
- function-call
strlenline 24 - function-call
in_arrayline 26 - method-call PlanStatements::quotedEnd() line 27
- function-call
array_popline 36 - new UnbalancedBracketsException line 37
- function-call
trimline 41 - function-call
substrline 41 - function-call
array_filterline 49
public function quotedEnd(string $source, int $start): intFinds a closing quote, allowing doubled quotes inside its content.
Parameters
$source | string | |
$start | int |
Returns
intTest cases 2
Called from 3
- method-call SqlFixture\Plan\Choice\ChoiceLiteral::read() packages/sql-fixture/src/Plan/Choice/ChoiceLiteral.php:24
- method-call SqlFixture\Plan\Choice\ChoiceSyntax::readRelations() packages/sql-fixture/src/Plan/Choice/ChoiceSyntax.php:65
- method-call SqlFixture\Plan\Parsing\PlanStatements::split() packages/sql-fixture/src/Plan/Parsing/PlanStatements.php:27
Calls 2
- function-call
strlenline 59 - new UnbalancedBracketsException line 69
Test cases 50§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 4
Other tests reaching this symbol 46
PostgreSqlEndToEndTestcallsSqliteIntegrationTestcallsCaseSelectionTestcallsChoiceBindingsTestcallsChoiceValueExceptionTestcallsInverseRelationsTestcallsResolvedRowTestcallsRowChoicesTestcallsConnectedTablesTestcallsOverrideSpecsTestcallsRecursiveRelationExceptionTestcallsRelationCountsTestcallsRelationProjectionTestcallsRelationValueExceptionTestcallsRowBindingsTestcallsRowMaterializerTestcallsGenerationRunTestcallsPlanGeneratorTestcallsPlanSchemaExceptionTestcallsPlanSchemaValidatorTestcallsEndpointValidatorTestcallsConstructorHydrationTestcallsPropertyHydrationTestcallsChoiceCaseTestcallsChoiceDefinitionExceptionTestcallsChoiceLiteralTestcallsChoiceSyntaxTestcallsChoiceValidationTestcallsPlanContentsTestcallsColumnRefTestcallsFixturePlanTestcallsRelationCursorTestcallsRelationReaderTestcallsPlanParserTestcallsPlanPrinterTestcallsPlanStructureExceptionTestcallsPlanSyntaxExceptionTestcallsPlanTablesTestcallsRelationGroupsTestcallsStatementPrinterTestcallsRelationChoiceTestcallsRelationTestcallsPlanValidationTestcallsTableNameTestcallsFixtureProviderTestcallsSqlSchemaProviderTestcalls
Relations§
Instantiated in 3
- new SqlFixture\Plan\Choice\ChoiceLiteral::read() packages/sql-fixture/src/Plan/Choice/ChoiceLiteral.php:24
- new SqlFixture\Plan\Choice\ChoiceSyntax::readRelations() packages/sql-fixture/src/Plan/Choice/ChoiceSyntax.php:65
- new SqlFixture\Plan\PlanParser::parse() packages/sql-fixture/src/Plan/PlanParser.php:35
Method calls 3
- method-call SqlFixture\Plan\Choice\ChoiceLiteral::read() packages/sql-fixture/src/Plan/Choice/ChoiceLiteral.php:24
- method-call SqlFixture\Plan\Choice\ChoiceSyntax::readRelations() packages/sql-fixture/src/Plan/Choice/ChoiceSyntax.php:65
- method-call SqlFixture\Plan\PlanParser::parse() packages/sql-fixture/src/Plan/PlanParser.php:35