| Current Path : /home/rtorresani/www/vendor/magento/module-adobe-stock-image-api/Api/ |
| Current File : //home/rtorresani/www/vendor/magento/module-adobe-stock-image-api/Api/SaveImageInterface.php |
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);
namespace Magento\AdobeStockImageApi\Api;
use Magento\Framework\Api\Search\Document;
use Magento\Framework\Exception\LocalizedException;
/**
* Downloads the image from the $url, saves it to $destinationPath in media gallery
* Saves media gallery asset and adobe stock asset entities to database
*
* @api
*/
interface SaveImageInterface
{
/**
* Downloads the image and save it to filesystem and database
*
* @param Document $document
* @param string $url
* @param string $destinationPath
* @throws LocalizedException
*/
public function execute(Document $document, string $url, string $destinationPath): void;
}