public function set(string $key, $value, $type = \PDO::PARAM_STR): self
    {
        $this->setParam(null, $value, $type);
        $this->set[] = Db::quoteIdentifier($key) . ' = ?';
        return $this;
    }
public function set(string $key, $value, $type = \PDO::PARAM_STR): self
    {
        $this->setParam(null, $value, $type);
        $this->set[] = Db::quoteIdentifier($key) . ' = ?';
        return $this;
    }
public function set ( string $ key , $ value , $ type = \ PDO :: PARAM_STR ) : self { $ this -> setParam ( null , $ value , $ type ) ; $ this -> set [ ] = Db :: quoteIdentifier ( $ key ) . ' = ?' ; return $ this ; }
Set key-value pair

Sets a new value for a column in a insert/update query
<code>
$ub = new UpdateBuilder();
$ub
->update('users')
->set('password', md5('password'))
->where('id = ?');
</code>

@param  string         $key   The column to set
@param  string|integer $value The value, expression, placeholder, etc
@param  int            $type  The type of value on of PDO::PARAM_* params

@return $this
Set key - value pair