public function set($name, $value = null)
    {
        if (!is_array($name)) {
            $this->data[$name] = $value;
        } else {
            foreach ($name as $key => $value) {
                $this->data[$key] = $value;
            }
        }
        return $this;
    }
public function set($name, $value = null)
    {
        if (!is_array($name)) {
            $this->data[$name] = $value;
        } else {
            foreach ($name as $key => $value) {
                $this->data[$key] = $value;
            }
        }
        return $this;
    }
public function set ( $ name , $ value = null ) { if ( ! is_array ( $ name ) ) { $ this -> data [ $ name ] = $ value ; } else { foreach ( $ name as $ key => $ value ) { $ this -> data [ $ key ] = $ value ; } } return $ this ; }
Set parameter value

@param string|array $name The parameter name or A key-value array
@param mixed $value The parameter value
@return $this
Set parameter value