* @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\Product\QueryHandler; use PrestaShop\PrestaShop\Core\Domain\Product\Exception\ProductNotFoundException; use PrestaShop\PrestaShop\Core\Domain\Product\Exception\ProductShopAssociationNotFoundException; use PrestaShop\PrestaShop\Core\Domain\Product\Query\GetProductForEditing; use PrestaShop\PrestaShop\Core\Domain\Product\QueryResult\ProductForEditing; /** * Defines contract for GetProductForEditingHandler */ interface GetProductForEditingHandlerInterface { /** * @param GetProductForEditing $query * * @return ProductForEditing * * @throws ProductNotFoundException * @throws ProductShopAssociationNotFoundException */ public function handle(GetProductForEditing $query): ProductForEditing; }