* @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\Manufacturer\Repository; use PrestaShop\PrestaShop\Core\Domain\Manufacturer\Exception\ManufacturerNotFoundException; use PrestaShop\PrestaShop\Core\Domain\Manufacturer\ValueObject\ManufacturerId; use PrestaShop\PrestaShop\Core\Repository\AbstractObjectModelRepository; class ManufacturerRepository extends AbstractObjectModelRepository { /** * @param ManufacturerId $manufacturerId * * @throws ManufacturerNotFoundException */ public function assertManufacturerExists(ManufacturerId $manufacturerId): void { $this->assertObjectModelExists( $manufacturerId->getValue(), 'manufacturer', ManufacturerNotFoundException::class ); } }