* @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\Core\Domain\Product\Image\Query; use PrestaShop\PrestaShop\Core\Domain\Product\ValueObject\ProductId; use PrestaShop\PrestaShop\Core\Domain\Shop\ValueObject\ShopConstraint; /** * Get list of Images associated to a Product in terms of ShopConstraint */ class GetProductImages { /** * @var ProductId */ private $productId; /** * @var ShopConstraint */ private $shopConstraint; /** * @param int $productId */ public function __construct( int $productId, ShopConstraint $shopConstraint ) { $this->productId = new ProductId($productId); $this->shopConstraint = $shopConstraint; } /** * @return ProductId */ public function getProductId(): ProductId { return $this->productId; } /** * @return ShopConstraint */ public function getShopConstraint(): ShopConstraint { return $this->shopConstraint; } }