* @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\CurrencyConstraintException; use PrestaShop\PrestaShop\Core\Domain\Currency\ValueObject\AlphaIsoCode; class EditUnofficialCurrencyCommand extends EditCurrencyCommand { /** * @var AlphaIsoCode|null */ private $isoCode; /** * @return AlphaIsoCode|null */ public function getIsoCode() { return $this->isoCode; } /** * @param string $isoCode * * @return self * * @throws CurrencyConstraintException */ public function setIsoCode($isoCode) { $this->isoCode = new AlphaIsoCode($isoCode); return $this; } }