public function params($name, $params = null, $override = false)
    {
        $overrideAll = (is_array($name) && is_bool($params)) ? $params : false;
        Util::operateArray($this->smsData['params'], $name, $params, [], function ($name, array $params) use ($override) {
            if (!isset($this->smsData['params'][$name])) {
                $this->smsData['params'][$name] = [];
            }
            $target = &$this->smsData['params'][$name];
            if ($override) {
                $target = $params;
            } else {
                $target = array_merge($target, $params);
            }
        }, $overrideAll);

        return $this;
    }
public function params($name, $params = null, $override = false)
    {
        $overrideAll = (is_array($name) && is_bool($params)) ? $params : false;
        Util::operateArray($this->smsData['params'], $name, $params, [], function ($name, array $params) use ($override) {
            if (!isset($this->smsData['params'][$name])) {
                $this->smsData['params'][$name] = [];
            }
            $target = &$this->smsData['params'][$name];
            if ($override) {
                $target = $params;
            } else {
                $target = array_merge($target, $params);
            }
        }, $overrideAll);

        return $this;
    }
public function params ( $ name , $ params = null , $ override = false ) { $ overrideAll = ( is_array ( $ name ) && is_bool ( $ params ) ) ? $ params : false ; Util :: operateArray ( $ this -> smsData [ 'params' ] , $ name , $ params , [ ] , function ( $ name , array $ params ) use ( $ override ) { if ( ! isset ( $ this -> smsData [ 'params' ] [ $ name ] ) ) { $ this -> smsData [ 'params' ] [ $ name ] = [ ] ; } $ target = & $ this -> smsData [ 'params' ] [ $ name ] ; if ( $ override ) { $ target = $ params ; } else { $ target = array_merge ( $ target , $ params ) ; } } , $ overrideAll ) ; return $ this ; }
Set params of agent.

@param string|array    $name
@param array|bool|null $params
@param bool            $override

@return $this
Set params of agent .