public function buildHashMatch($match, &$params)
    {
        $parts = [];

        foreach ($match as $column => $value) {
            $parts[] = $this->buildMatchColumn($column) . ' ' . $this->buildMatchValue($value, $params);
        }

        return count($parts) === 1 ? $parts[0] : '(' . implode(') (', $parts) . ')';
    }
public function buildHashMatch($match, &$params)
    {
        $parts = [];

        foreach ($match as $column => $value) {
            $parts[] = $this->buildMatchColumn($column) . ' ' . $this->buildMatchValue($value, $params);
        }

        return count($parts) === 1 ? $parts[0] : '(' . implode(') (', $parts) . ')';
    }
public function buildHashMatch ( $ match , & $ params ) { $ parts = [ ] ; foreach ( $ match as $ column => $ value ) { $ parts [ ] = $ this -> buildMatchColumn ( $ column ) . ' ' . $ this -> buildMatchValue ( $ value , $ params ) ; } return count ( $ parts ) === 1 ? $ parts [ 0 ] : '(' . implode ( ') (' , $ parts ) . ')' ; }
Creates a MATCH based on column-value pairs.
@param array $match the match condition
@param array $params the expression parameters to be populated
@return string the MATCH expression
Creates a MATCH based on column - value pairs .