| Conditions | 3 |
| Paths | 3 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 22 | public function having(string $condition, array $bind = []) |
||
| 23 | { |
||
| 24 | if (!$condition) { |
||
| 25 | throw new QueryBuilderException('You must pass $condition to having function!'); |
||
| 26 | } |
||
| 27 | |||
| 28 | $this->having[] = $condition; |
||
| 29 | |||
| 30 | if (!empty($bind)) { |
||
| 31 | $this->bind($bind); |
||
|
|
|||
| 32 | } |
||
| 33 | |||
| 34 | return $this; |
||
| 35 | } |
||
| 48 |