public function setParam($name, $value): self
    {
        if (null === $name) {
            throw new \InvalidArgumentException('The argument name cannot be null.');
        }

        $this->params[$name] = $value;

        return $this;
    }
public function setParam($name, $value): self
    {
        if (null === $name) {
            throw new \InvalidArgumentException('The argument name cannot be null.');
        }

        $this->params[$name] = $value;

        return $this;
    }
public function setParam ( $ name , $ value ) : self { if ( null === $ name ) { throw new \ InvalidArgumentException ( 'The argument name cannot be null.' ) ; } $ this -> params [ $ name ] = $ value ; return $ this ; }
set a argument
@param $name
@param $value
@throws  \InvalidArgumentException  If the argument name is null.
@return $this
set a argument