src/Contracts/Request.php
public function parameter(string $key, $newValue = null)
    {
        if (func_num_args() >= 2) {
            $this->parameters = array_merge($this->parameters, [$key => $newValue]);
        }

        return isset($this->parameters[$key]) ? $this->parameters[$key] : null;
    }
public function parameter(string $key, $newValue = null)
    {
        if (func_num_args() >= 2) {
            $this->parameters = array_merge($this->parameters, [$key => $newValue]);
        }

        return isset($this->parameters[$key]) ? $this->parameters[$key] : null;
    }
public function parameter ( string $ key , $ newValue = null ) { if ( func_num_args ( ) >= 2 ) { $ this -> parameters = array_merge ( $ this -> parameters , [ $ key => $ newValue ] ) ; } return isset ( $ this -> parameters [ $ key ] ) ? $ this -> parameters [ $ key ] : null ; }
Get or set value of parameter

@param string $key
@param null $newValue
@return mixed
Get or set value of parameter