* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ namespace PrestaShop\PrestaShop\Core\Domain\Country\Query; use PrestaShop\PrestaShop\Core\Domain\Country\Exception\CountryConstraintException; use PrestaShop\PrestaShop\Core\Domain\Country\ValueObject\CountryId; /** * Query for getting country required fields */ class GetCountryRequiredFields { /** * @var CountryId */ private $countryId; /** * @param int $countryId * * @throws CountryConstraintException */ public function __construct(int $countryId) { $this->countryId = new CountryId($countryId); } /** * @return CountryId */ public function getCountryId(): CountryId { return $this->countryId; } }