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
27declare(strict_types=1);
28
29namespace PrestaShop\PrestaShop\Core\Domain\Product\QueryResult;
30
31/**
32 * Holds product details
33 */
34class ProductDetails
35{
36    /**
37     * @var string
38     */
39    private $isbn;
40
41    /**
42     * @var string
43     */
44    private $upc;
45
46    /**
47     * @var string
48     */
49    private $ean13;
50
51    /**
52     * @var string
53     */
54    private $mpn;
55
56    /**
57     * @var string
58     */
59    private $reference;
60
61    /**
62     * @param string $isbn
63     * @param string $upc
64     * @param string $ean13
65     * @param string $mpn
66     * @param string $reference
67     */
68    public function __construct(
69        string $isbn,
70        string $upc,
71        string $ean13,
72        string $mpn,
73        string $reference
74    ) {
75        $this->isbn = $isbn;
76        $this->upc = $upc;
77        $this->ean13 = $ean13;
78        $this->mpn = $mpn;
79        $this->reference = $reference;
80    }
81
82    /**
83     * @return string
84     */
85    public function getIsbn(): string
86    {
87        return $this->isbn;
88    }
89
90    /**
91     * @return string
92     */
93    public function getUpc(): string
94    {
95        return $this->upc;
96    }
97
98    /**
99     * @return string
100     */
101    public function getEan13(): string
102    {
103        return $this->ean13;
104    }
105
106    /**
107     * @return string
108     */
109    public function getMpn(): string
110    {
111        return $this->mpn;
112    }
113
114    /**
115     * @return string
116     */
117    public function getReference(): string
118    {
119        return $this->reference;
120    }
121}
122