protected function _stringifyExpressions($expressions, $generator, $wrap = true)
    {
        $result = [];
        foreach ($expressions as $k => $expression) {
            if ($expression instanceof ExpressionInterface) {
                $value = $expression->sql($generator);
                $expression = $wrap ? '(' . $value . ')' : $value;
            }
            $result[$k] = $expression;
        }

        return $result;
    }
protected function _stringifyExpressions($expressions, $generator, $wrap = true)
    {
        $result = [];
        foreach ($expressions as $k => $expression) {
            if ($expression instanceof ExpressionInterface) {
                $value = $expression->sql($generator);
                $expression = $wrap ? '(' . $value . ')' : $value;
            }
            $result[$k] = $expression;
        }

        return $result;
    }
protected function _stringifyExpressions ( $ expressions , $ generator , $ wrap = true ) { $ result = [ ] ; foreach ( $ expressions as $ k => $ expression ) { if ( $ expression instanceof ExpressionInterface ) { $ value = $ expression -> sql ( $ generator ) ; $ expression = $ wrap ? '(' . $ value . ')' : $ value ; } $ result [ $ k ] = $ expression ; } return $ result ; }
Helper function used to covert ExpressionInterface objects inside an array
into their string representation.

@param array $expressions list of strings and ExpressionInterface objects
@param \Cake\Database\ValueBinder $generator the placeholder generator to be used in expressions
@param bool $wrap Whether to wrap each expression object with parenthesis
@return array
Helper function used to covert ExpressionInterface objects inside an array into their string representation .