* @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */ namespace PrestaShop\PrestaShop\Core\Domain\Supplier\QueryResult; /** * Stores query result for getting supplier for viewing */ class ViewableSupplier { /** * @var string */ private $name; /** * @var array */ private $supplierProducts; /** * @param string $name * @param array $supplierProducts */ public function __construct($name, array $supplierProducts) { $this->name = $name; $this->supplierProducts = $supplierProducts; } /** * @return string */ public function getName() { return $this->name; } /** * @return array */ public function getSupplierProducts() { return $this->supplierProducts; } }