code: public function setCountry($country)
      {
          if (!($country instanceof Country)) {
              $country = new Country($country);
          }
          if ($country->isEmpty()) {
              $this->invalidArguments('10001');
          }
          return $this->setParameter('country', $country);
      }
docs: Set the address country
  @param Country|array $country
  @return $this
  @throws InvalidArgumentException