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

    if (false === in_array(strtolower($country), $this->possibleLocations))
    {
      throw new InvalidArgumentException(sprintf(
        "Invalid Country-Code: %s! Possible Country-Codes: %s",
        $country,
        implode(', ', $this->possibleLocations)
      ));
    }

    $this->responseConfig['country'] = strtolower($country);

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

    if (false === in_array(strtolower($country), $this->possibleLocations))
    {
      throw new InvalidArgumentException(sprintf(
        "Invalid Country-Code: %s! Possible Country-Codes: %s",
        $country,
        implode(', ', $this->possibleLocations)
      ));
    }

    $this->responseConfig['country'] = strtolower($country);

    return $this;
  }
public function country ( $ country = null ) { if ( null === $ country ) { return $ this -> responseConfig [ 'country' ] ; } if ( false === in_array ( strtolower ( $ country ) , $ this -> possibleLocations ) ) { throw new InvalidArgumentException ( sprintf ( "Invalid Country-Code: %s! Possible Country-Codes: %s" , $ country , implode ( ', ' , $ this -> possibleLocations ) ) ) ; } $ this -> responseConfig [ 'country' ] = strtolower ( $ country ) ; return $ this ; }
Set or get the country

if the country argument is null it will return the current
country, otherwise it will set the country and return itself.

@param string|null $country

@return string|AmazonECS depends on country argument
Set or get the country