Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 1 |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | 4 | public function compile(QueryBuilder $queryBuilder): string |
|
27 | { |
||
28 | 4 | $this->variableName = $queryBuilder->normalizeArgument($this->variableName, 'Variable'); |
|
29 | 4 | $queryBuilder->registerVariable($this->variableName->compile($queryBuilder)); |
|
30 | |||
31 | 4 | $this->expression = $queryBuilder->normalizeArgument( |
|
32 | 4 | $this->expression, |
|
33 | 4 | ['List', 'Object', 'Query', 'Range', 'Number', 'Bind'] |
|
34 | ); |
||
35 | |||
36 | 4 | return "LET {$this->variableName->compile($queryBuilder)} = {$this->expression->compile($queryBuilder)}"; |
|
37 | } |
||
39 |