classImmutableGraph
final class ImmutableGraph
Restricted visibility: declared "@visibility SqlSemantics". Code outside that scope must not name this declaration.
Describes whether a value graph consists entirely of final readonly objects.
Enums and comments are immutable by construction and are not inspected.
Methods§
public function containsOnlyImmutableValues(Element $root): boolChecks object state without invoking a writer or inspecting SQL text.
Parameters
$root | Element |
Returns
boolTest cases 4
InvariantTest::testElementsPreservesImmutableSemanticGraphscallsImmutableGraphTest::testContainsOnlyImmutableValuesAcceptsCommentsAndRejectsOtherObjectscallsImmutableGraphTest::testContainsOnlyImmutableValuesAcceptsGeneratedDescendantscallsImmutableGraphTest::testContainsOnlyImmutableValuesRejectsMutableStatecalls
Called from 2
Test cases 17§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 3
Other tests reaching this symbol 14
AnalyzerTestcallsSchemaAnalyzerTestcallsValueReaderTestcallsAnalysisExceptionTestcallsColumnPropertiesTestcallsSchemaChangesTestcallsColumnGenerationTestcallsGenerationKindTestcallsInvariantTest::testElementsPreservesImmutableSemanticGraphscallsSchemaTestcallsSemanticsTestcallsCommandTestcallsElementTestcallsStatementTestcalls