interfaceTerm
interface Term
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
One alternative an expression may evaluate to.
The hierarchy is sealed. A term is a resolved scalar (LiteralTerm), a string with gaps (PatternTerm), an array (ArrayTerm), an object (ObjectTerm), or a value known only by its type (OpaqueTerm).
Methods§
public function toPattern(): TextPatternThe term written as the string PHP would splice into a query.
Returns
public function type(): TypeShapeThe static type of the values this term stands for.
Returns
public function signature(): stringA canonical string used to deduplicate alternatives.
Returns
stringTest cases 4§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
TermTestcalls
Other tests reaching this symbol 3
Relations§
Implemented by 5
- ArrayTerm packages/sql-catalog/src/Core/Evaluation/ArrayTerm.php:21
- LiteralTerm packages/sql-catalog/src/Core/Evaluation/LiteralTerm.php:16
- ObjectTerm packages/sql-catalog/src/Core/Evaluation/ObjectTerm.php:24
- OpaqueTerm packages/sql-catalog/src/Core/Evaluation/OpaqueTerm.php:18
- PatternTerm packages/sql-catalog/src/Core/Evaluation/PatternTerm.php:16
Type declarations 6
- type SqlCatalog\Core\Evaluation\Domain packages/sql-catalog/src/Core/Evaluation/Domain.php:47
- type SqlCatalog\Core\Evaluation\Domain packages/sql-catalog/src/Core/Evaluation/Domain.php:104
- type SqlCatalog\Core\Evaluation\Domain packages/sql-catalog/src/Core/Evaluation/Domain.php:183
- type SqlCatalog\Core\Evaluation\Domain::withVariable() packages/sql-catalog/src/Core/Evaluation/Domain.php:240
- type SqlCatalog\Core\Evaluation\Domain::withVariable() packages/sql-catalog/src/Core/Evaluation/Domain.php:246
- type SqlCatalog\Extension\Laravel\Grammar packages/sql-catalog/src/Extension/Laravel/Grammar.php:79