| Total Complexity | 2 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | readonly class Where implements Stringable |
||
| 26 | { |
||
| 27 | public function __construct( |
||
| 28 | public Value $value, |
||
| 29 | public Comparison $comparison = Comparison::EQUALS, |
||
| 30 | public WhereType $type = WhereType::DEFAULT, |
||
| 31 | ) { |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Get the where clause as a string. |
||
| 36 | * |
||
| 37 | * @return non-empty-string |
||
|
|
|||
| 38 | */ |
||
| 39 | public function __toString(): string |
||
| 46 | } |
||
| 47 | } |
||
| 48 |