* @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\Country\QueryResult; /** * Stores data about address fields which are required by country */ class CountryRequiredFields { /** @var bool */ private $stateRequired; /** @var bool */ private $dniRequired; /** * @param bool $stateRequired * @param bool $dniRequired */ public function __construct(bool $stateRequired, bool $dniRequired) { $this->stateRequired = $stateRequired; $this->dniRequired = $dniRequired; } /** * @return bool */ public function isStateRequired(): bool { return $this->stateRequired; } /** * @return bool */ public function isDniRequired(): bool { return $this->dniRequired; } }