Lines
100.00%
1 / 1
Methods
100.00%
1 / 1
Classes
100.00%
1 / 1
| Name | Lines | Methods | CRAP | ||||
|---|---|---|---|---|---|---|---|
| __construct | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | ||
| 20 | final class ScopeCondition | |
| 21 | { | |
| 22 | /** | |
| 23 | * Create a scope condition. | |
| 24 | * | |
| 25 | * @param string $column The DB column name (validated at metadata build). | |
| 26 | * @param WhereOperator $operator The operator (Null/NotNull/eq-style). | |
| 27 | * @param mixed $value The comparison value; encoded through the column's cast at apply time. | |
| 28 | * @param WhereBoolean $boolean How this condition joins the previous one in the same trait's group. | |
| 29 | */ | |
| 30 | final public function __construct( | |
| 31 | public readonly string $column, | |
| 32 | public readonly WhereOperator $operator, | |
| 33 | public readonly mixed $value = null, | |
| 34 | public readonly WhereBoolean $boolean = WhereBoolean::And, | |
| 35 | ) { | |
| 36 | } | |
| 37 | } |