protected function setParameter($key, $value)
    {
        if (is_array($value) && isset($value['value'])) {
            $value = $value['value'];
        }

        $this->parameters->set($key, $value);

        return $this;
    }
protected function setParameter($key, $value)
    {
        if (is_array($value) && isset($value['value'])) {
            $value = $value['value'];
        }

        $this->parameters->set($key, $value);

        return $this;
    }
protected function setParameter ( $ key , $ value ) { if ( is_array ( $ value ) && isset ( $ value [ 'value' ] ) ) { $ value = $ value [ 'value' ] ; } $ this -> parameters -> set ( $ key , $ value ) ; return $ this ; }
Check if a Amount object is used, store the value

@param $key
@param $value
@return $this
Check if a Amount object is used store the value