1<?php 2/** 3 * Copyright since 2007 PrestaShop SA and Contributors 4 * PrestaShop is an International Registered Trademark & Property of PrestaShop SA 5 * 6 * NOTICE OF LICENSE 7 * 8 * This source file is subject to the Open Software License (OSL 3.0) 9 * that is bundled with this package in the file LICENSE.md. 10 * It is also available through the world-wide-web at this URL: 11 * https://opensource.org/licenses/OSL-3.0 12 * If you did not receive a copy of the license and are unable to 13 * obtain it through the world-wide-web, please send an email 14 * to license@prestashop.com so we can send you a copy immediately. 15 * 16 * DISCLAIMER 17 * 18 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer 19 * versions in the future. If you wish to customize PrestaShop for your 20 * needs please refer to https://devdocs.prestashop.com/ for more information. 21 * 22 * @author PrestaShop SA and Contributors <contact@prestashop.com> 23 * @copyright Since 2007 PrestaShop SA and Contributors 24 * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) 25 */ 26 27namespace PrestaShop\PrestaShop\Core\Domain\Supplier\QueryResult; 28 29/** 30 * Stores query result for getting supplier for viewing 31 */ 32class ViewableSupplier 33{ 34 /** 35 * @var string 36 */ 37 private $name; 38 39 /** 40 * @var array 41 */ 42 private $supplierProducts; 43 44 /** 45 * @param string $name 46 * @param array $supplierProducts 47 */ 48 public function __construct($name, array $supplierProducts) 49 { 50 $this->name = $name; 51 $this->supplierProducts = $supplierProducts; 52 } 53 54 /** 55 * @return string 56 */ 57 public function getName() 58 { 59 return $this->name; 60 } 61 62 /** 63 * @return array 64 */ 65 public function getSupplierProducts() 66 { 67 return $this->supplierProducts; 68 } 69} 70