public function setParam($name, $value): void
    {
        if (\is_array($this->params)) {
            // Arrays or objects implementing array access
            $this->params[$name] = $value;
        } else {
            // Objects
            $this->params->{$name} = $value;
        }
    }
public function setParam($name, $value): void
    {
        if (\is_array($this->params)) {
            // Arrays or objects implementing array access
            $this->params[$name] = $value;
        } else {
            // Objects
            $this->params->{$name} = $value;
        }
    }
public function setParam ( $ name , $ value ) : void { if ( \ is_array ( $ this -> params ) ) { // Arrays or objects implementing array access $ this -> params [ $ name ] = $ value ; } else { // Objects $ this -> params -> { $ name } = $ value ; } }
Set an individual parameter to a value

@param  string|int $name
@param  mixed      $value

@return void
Set an individual parameter to a value