public function buildAndCondition($operator, $operands)
    {
        $operator = $this->normalizeConditionKeyword($operator);
        $parts = [];
        foreach ($operands as $operand) {
            $parts[] = $this->buildCondition($operand);
        }

        return [$operator => $parts];
    }
public function buildAndCondition($operator, $operands)
    {
        $operator = $this->normalizeConditionKeyword($operator);
        $parts = [];
        foreach ($operands as $operand) {
            $parts[] = $this->buildCondition($operand);
        }

        return [$operator => $parts];
    }
public function buildAndCondition ( $ operator , $ operands ) { $ operator = $ this -> normalizeConditionKeyword ( $ operator ) ; $ parts = [ ] ; foreach ( $ operands as $ operand ) { $ parts [ ] = $ this -> buildCondition ( $ operand ) ; } return [ $ operator => $ parts ] ; }
Connects two or more conditions with the `AND` operator.
@param string $operator the operator to use for connecting the given operands
@param array $operands the Mongo conditions to connect.
@return array the generated Mongo condition.
Connects two or more conditions with the AND operator .