public function setParams(array $params, array $types = []): self
    {
        $this->types = $types;
        $this->params = $params;

        return $this;
    }
public function setParams(array $params, array $types = []): self
    {
        $this->types = $types;
        $this->params = $params;

        return $this;
    }
public function setParams ( array $ params , array $ types = [ ] ) : self { $ this -> types = $ types ; $ this -> params = $ params ; return $ this ; }
Sets a collection of query parameters for the query being constructed

Example
<code>
$sb = new SelectBuilder();
$sb
->select('u')
->from('users', 'u')
->where('u.id = :user_id1 OR u.id = :user_id2')
->setParameters([
':user_id1' => 1,
':user_id2' => 2
]);
</code>

@param  array $params The query parameters to set
@param  array $types  The query parameters types to set

@return self
Sets a collection of query parameters for the query being constructed