* @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\Image\ValueObject\ImageId; use PrestaShop\PrestaShop\Core\Domain\Shop\ValueObject\ShopConstraint; class GetProductImage { /** * @var ImageId */ private $imageId; /** * @var ShopConstraint */ private $shopConstraint; public function __construct( int $imageId, ShopConstraint $shopConstraint ) { $this->imageId = new ImageId($imageId); $this->shopConstraint = $shopConstraint; } /** * @return ImageId */ public function getImageId(): ImageId { return $this->imageId; } /** * @return ShopConstraint */ public function getShopConstraint(): ShopConstraint { return $this->shopConstraint; } }