public function setParam($key, $value, $type = \PDO::PARAM_STR): self
    {
        if (null === $key) {
            $key = \count($this->params);
        }

        $this->params[$key] = $value;
        $this->types[$key] = $type;

        return $this;
    }
public function setParam($key, $value, $type = \PDO::PARAM_STR): self
    {
        if (null === $key) {
            $key = \count($this->params);
        }

        $this->params[$key] = $value;
        $this->types[$key] = $type;

        return $this;
    }
public function setParam ( $ key , $ value , $ type = \ PDO :: PARAM_STR ) : self { if ( null === $ key ) { $ key = \ count ( $ this -> params ) ; } $ this -> params [ $ key ] = $ value ; $ this -> types [ $ key ] = $ type ; return $ this ; }
Sets a query parameter for the query being constructed

Example
<code>
$sb = new SelectBuilder();
$sb
->select('u')
->from('users', 'u')
->where('u.id = :user_id')
->setParameter(':user_id', 1);
</code>

@param  string|int|null $key   The parameter position or name
@param  mixed      $value The parameter value
@param  integer    $type  PDO::PARAM_*

@return self
Sets a query parameter for the query being constructed