classDoctrineExtension
final class DoctrineExtension
implements ExtensionInterface
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
Doctrine DBAL connections, where the statement is written as SQL.
Methods§
public function name(): stringThe name the command line selects this extension by.
Returns
stringTest cases 1
public function description(): stringWhat the extension covers.
Returns
stringTest cases 1
public function sinks(): list<SinkSpec>The Doctrine calls that carry a statement or bind a value to one.
Returns
list<SinkSpec>Test cases 3
Calls 9
- new SinkSpec line 52
- class-const SinkCallKind::Method() line 54
- class-const DoctrineExtension::CONNECTION() line 55
- class-const SinkRole::Prepare() line 57
- class-const DoctrineExtension::STATEMENT() line 59
- class-const SinkRole::Bind() line 66
- class-const SinkRole::Execute() line 75
- method-call DoctrineExtension::methods() line 80
- class-const SinkRole::Query() line 86
public function methods(): array<string, StatementKind|null>The connection methods that take raw SQL, and the kind each implies.
Returns
array<string, StatementKind|null>Test cases 1
Called from 1
Calls 1
- class-const StatementKind::Select() line 106
public function globals(): array<string, string>The extension declares no globals.
Returns
array<string, string>Private surface 2§
Implementation details, listed for orientation only.
private const CONNECTION = 'Doctrine\DBAL\Connection'private const STATEMENT = 'Doctrine\DBAL\Statement'Test cases 20§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 7
DoctrineExtensionTest::testDescriptionMentionsWhatItCoverscallsDoctrineExtensionTest::testEverySinkIsDescribedExactlycallsDoctrineExtensionTest::testGlobalsAreEmptyBecauseTheHandleIsNotReachedThroughOnecallsDoctrineExtensionTest::testMethodsNameTheKindTheFetchCallsImplycallsDoctrineExtensionTest::testNameIsHowTheCommandLineSelectsItcallsDoctrineExtensionTest::testPreparingHandsBackADoctrineStatementcallsDoctrineExtensionTest::testSinksCoverPreparingBindingAndQueryingcalls
Other tests reaching this symbol 13
CatalogCommandTestcallsUsageTextTestcallsCallEvaluatorTestcallsExpressionEvaluatorTestcallsInterpreterTestcallsExtensionInterfaceTest::testDescriptionIsAlwaysWrittencallsExtensionInterfaceTest::testGlobalsAreDeclaredOnlyByAnExtensionThatHandsOneOutcallsExtensionInterfaceTest::testNameIsUniqueAcrossTheExtensionsThatShipcallsExtensionRegistryTestcallsCallModelTestcallsAnalyzerTestcallsJsonReporterTestcallsTextReporterTestcalls