public function optionalParameters($params = null)
  {
    if (null === $params)
    {
      return $this->responseConfig['optionalParameters'];
    }

    if (false === is_array($params))
    {
      throw new InvalidArgumentException(sprintf(
        "%s is no valid parameter: Use an array with Key => Value Pairs", $params
      ));
    }

    $this->responseConfig['optionalParameters'] = $params;

    return $this;
  }
public function optionalParameters($params = null)
  {
    if (null === $params)
    {
      return $this->responseConfig['optionalParameters'];
    }

    if (false === is_array($params))
    {
      throw new InvalidArgumentException(sprintf(
        "%s is no valid parameter: Use an array with Key => Value Pairs", $params
      ));
    }

    $this->responseConfig['optionalParameters'] = $params;

    return $this;
  }
public function optionalParameters ( $ params = null ) { if ( null === $ params ) { return $ this -> responseConfig [ 'optionalParameters' ] ; } if ( false === is_array ( $ params ) ) { throw new InvalidArgumentException ( sprintf ( "%s is no valid parameter: Use an array with Key => Value Pairs" , $ params ) ) ; } $ this -> responseConfig [ 'optionalParameters' ] = $ params ; return $ this ; }
set or get optional parameters

if the argument params is null it will reutrn the current parameters,
otherwise it will set the params and return itself.

@param array $params the optional parameters

@return array|AmazonECS depends on params argument
set or get optional parameters