| Total Complexity | 4 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | readonly class Value implements Stringable |
||
| 31 | { |
||
| 32 | /** |
||
| 33 | * @param non-empty-string $name The name of the value |
||
|
|
|||
| 34 | * @param ValueType $value The value |
||
| 35 | */ |
||
| 36 | public function __construct( |
||
| 37 | public string $name, |
||
| 38 | public QueryBuilder|array|string|float|int|bool|null $value = null, |
||
| 39 | ) { |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Get the value as a string. |
||
| 44 | * |
||
| 45 | * @return non-empty-string |
||
| 46 | */ |
||
| 47 | public function __toString(): string |
||
| 61 | } |
||
| 62 | } |
||
| 63 |