Lines
100.00%
1 / 1
Functions and Methods
100.00%
1 / 1
Classes and Traits
100.00%
1 / 1
| Name | Lines | Functions and Methods | CRAP | Classes and Traits | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Expression | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | 100.00% | 1 / 1 | |||
| __construct | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | |||||
| 1 | <?php | |
| 2 | ||
| 3 | declare(strict_types=1); | |
| 4 | ||
| 5 | namespace BlueprintAU\Radiant\Database\Query; | |
| 6 | ||
| 7 | /** | |
| 8 | * A raw SQL fragment that is spliced into a compiled query verbatim. | |
| 9 | * | |
| 10 | * Callers are responsible for its safety — it never reaches the bind guard | |
| 11 | * or the value codec; the Grammar inlines it directly. | |
| 12 | */ | |
| 13 | final class Expression | |
| 14 | { | |
| 15 | /** | |
| 16 | * Create a raw SQL expression. | |
| 17 | * | |
| 18 | * @param string $value | |
| 19 | */ | |
| 20 | public function __construct(public readonly string $value) {} | |
| 21 | } |