/** * Set the country that should be delivered to. * * @param Country $country * @throws InvalidArgumentException */ public function setCountry(Country $country) { if (!$country->canBeShippedTo()) { throw new InvalidArgumentException(trans('countries.cannot_be_shipped_to', ['name' => $country->name])); } $this->country = $country; }