@@ 459-466 (lines=8) @@ | ||
456 | * values that are being passed. Used for correctly binding values to statements. |
|
457 | * @return \Cake\Database\Expression\QueryExpression |
|
458 | */ |
|
459 | public function and_($conditions, $types = []) |
|
460 | { |
|
461 | if ($this->isCallable($conditions)) { |
|
462 | return $conditions(new static([], $this->getTypeMap()->setTypes($types))); |
|
463 | } |
|
464 | ||
465 | return new static($conditions, $this->getTypeMap()->setTypes($types)); |
|
466 | } |
|
467 | ||
468 | /** |
|
469 | * Returns a new QueryExpression object containing all the conditions passed |
|
@@ 477-484 (lines=8) @@ | ||
474 | * values that are being passed. Used for correctly binding values to statements. |
|
475 | * @return \Cake\Database\Expression\QueryExpression |
|
476 | */ |
|
477 | public function or_($conditions, $types = []) |
|
478 | { |
|
479 | if ($this->isCallable($conditions)) { |
|
480 | return $conditions(new static([], $this->getTypeMap()->setTypes($types), 'OR')); |
|
481 | } |
|
482 | ||
483 | return new static($conditions, $this->getTypeMap()->setTypes($types), 'OR'); |
|
484 | } |
|
485 | // @codingStandardsIgnoreEnd |
|
486 | ||
487 | /** |