* @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\Currency\Command; use PrestaShop\PrestaShop\Core\Domain\Currency\Exception\CurrencyException; use PrestaShop\PrestaShop\Core\Domain\Currency\ValueObject\CurrencyId; /** * Class ToggleCurrencyStatusCommand is responsible for changing the status of the currency. */ class ToggleCurrencyStatusCommand { /** * @var CurrencyId */ private $currencyId; /** * @param int $currencyId * * @throws CurrencyException */ public function __construct($currencyId) { $this->currencyId = new CurrencyId($currencyId); } /** * @return CurrencyId */ public function getCurrencyId() { return $this->currencyId; } }