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\Tax\Command;
28
29/**
30 * Adds new tax
31 */
32class AddTaxCommand
33{
34    /**
35     * @var array
36     */
37    private $localizedNames;
38
39    /**
40     * @var float
41     */
42    private $rate;
43
44    /**
45     * @var bool
46     */
47    private $enabled;
48
49    /**
50     * @param array $localizedNames
51     * @param float $rate
52     * @param bool $enabled
53     */
54    public function __construct(array $localizedNames, $rate, $enabled)
55    {
56        $this->localizedNames = $localizedNames;
57        $this->rate = $rate;
58        $this->enabled = $enabled;
59    }
60
61    /**
62     * @return array
63     */
64    public function getLocalizedNames()
65    {
66        return $this->localizedNames;
67    }
68
69    /**
70     * @return float
71     */
72    public function getRate()
73    {
74        return $this->rate;
75    }
76
77    /**
78     * @return bool
79     */
80    public function isEnabled()
81    {
82        return $this->enabled;
83    }
84
85    /**
86     * @param bool $enabled
87     */
88    public function setEnabled($enabled)
89    {
90        $this->enabled = $enabled;
91    }
92}
93