| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 73 | public function buildCondition($value) |
||
| 74 | { |
||
| 75 | if (is_array($value)) { |
||
| 76 | throw new InvalidParamException('Condition ' . json_encode($value) . ' is not supported yet.'); |
||
| 77 | } |
||
| 78 | |||
| 79 | $validator = $this->getAttribute()->getValidatorFor('eq'); |
||
| 80 | $value = $validator->normalize($value); |
||
| 81 | $validator->validate($value); |
||
| 82 | |||
| 83 | return [$this->getSql() => $value]; |
||
| 84 | } |
||
| 85 | } |
||
| 86 |