* @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\QueryResult; /** * Minimum data to display a preview of a product */ class ProductPreview { /** * @var int */ private $productId; /** * @var string */ private $name; /** * @var string */ private $image; /** * @param int $productId * @param string $name * @param string $imageUrl */ public function __construct( int $productId, string $name, string $imageUrl ) { $this->productId = $productId; $this->name = $name; $this->image = $imageUrl; } /** * @return int */ public function getProductId(): int { return $this->productId; } /** * @return string */ public function getName(): string { return $this->name; } /** * @return string */ public function getImage(): string { return $this->image; } }