Lines
n/a
0 / 0
Functions and Methods
n/a
0 / 0
Classes and Traits
n/a
0 / 0
| Name | Lines | Functions and Methods | CRAP | Classes and Traits | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | <?php | |
| 2 | ||
| 3 | declare(strict_types=1); | |
| 4 | ||
| 5 | namespace BlueprintAU\Radiant\Database\Query; | |
| 6 | ||
| 7 | /** | |
| 8 | * Value objects that are scalar-representable — `Uuid`, `Money`, enum-backed | |
| 9 | * types, etc. — implement this interface so they can be used anywhere a | |
| 10 | * scalar can. | |
| 11 | */ | |
| 12 | interface ToSqlValue | |
| 13 | { | |
| 14 | /** | |
| 15 | * Convert this value to a SQL scalar (unquoted — the Grammar renders the | |
| 16 | * literal). | |
| 17 | * | |
| 18 | * @return string|int|float|bool|null | |
| 19 | */ | |
| 20 | public function toSqlValue(): string|int|float|bool|null; | |
| 21 | } |