classViewDefinition
final class ViewDefinition
One view: the statement it stands for, and what that reaches.
Shadowing a view means shadowing everything its statement reads, so the tables it depends on are part of what a view is here.
Properties§
public string $querypublic list<string> $dependenciesMethods§
public function __construct(public string $query, public list<string> $dependencies)Parameters
$query | string | |
$dependencies | list<string> |
Test cases 1
Test cases 8§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
ViewDefinitionTest::testCarriesAQueryAndItsSemanticDependenciescovers and calls
Other tests reaching this symbol 7
ViewDefinitionSetTest::testHasAnswersForAViewTheSetKnowscallsViewDefinitionSetTest::testHasAnyViewsIsFalseUntilOneIsRegisteredcallsViewDefinitionSetTest::testKeepsCyclicDefinitionsDeterministiccallsViewDefinitionSetTest::testOrdersThreeDependencyLevelscallsViewDefinitionSetTest::testOrdersViewsAfterTheirDependenciescallsViewDefinitionSetTest::testRegisterMakesAViewOneOfTheSetcallsViewDefinitionSetTest::testRegisterUnderANameAlreadyThereTakesThePlaceOfItcalls