* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ declare(strict_types=1); namespace PrestaShop\PrestaShop\Adapter\Country\Repository; use PrestaShop\PrestaShop\Core\Domain\Country\Exception\CountryNotFoundException; use PrestaShop\PrestaShop\Core\Domain\Country\ValueObject\CountryId; use PrestaShop\PrestaShop\Core\Repository\AbstractObjectModelRepository; /** * Provides methods to access data storage of Country */ class CountryRepository extends AbstractObjectModelRepository { /** * @param CountryId $countryId * * @throws CountryNotFoundException */ public function assertCountryExists(CountryId $countryId): void { $this->assertObjectModelExists( $countryId->getValue(), 'country', CountryNotFoundException::class ); } }