@@ 511-519 (lines=9) @@ | ||
508 | * @see having() |
|
509 | * @see orHaving() |
|
510 | */ |
|
511 | public function andHaving($condition) |
|
512 | { |
|
513 | if ($this->having === null) { |
|
514 | $this->having = $condition; |
|
515 | } else { |
|
516 | $this->having = ['and', $this->having, $condition]; |
|
517 | } |
|
518 | return $this; |
|
519 | } |
|
520 | ||
521 | /** |
|
522 | * Adds an additional HAVING condition to the existing one. |
|
@@ 530-538 (lines=9) @@ | ||
527 | * @see having() |
|
528 | * @see andHaving() |
|
529 | */ |
|
530 | public function orHaving($condition) |
|
531 | { |
|
532 | if ($this->having === null) { |
|
533 | $this->having = $condition; |
|
534 | } else { |
|
535 | $this->having = ['or', $this->having, $condition]; |
|
536 | } |
|
537 | return $this; |
|
538 | } |
|
539 | ||
540 | /** |
|
541 | * Creates a new Query object and copies its property values from an existing one. |