* @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\Form\DTO; /** * Holds the field name for which the multi-store restriction checkbox has been checked or unchecked and the status if it * was restricted or not. */ class ShopRestrictionField { /** * @var string */ private $fieldName; /** * @var bool */ private $isRestrictedToContextShop; /** * @param string $fieldName * @param bool $isRestrictedToContextShop */ public function __construct($fieldName, $isRestrictedToContextShop) { $this->fieldName = $fieldName; $this->isRestrictedToContextShop = $isRestrictedToContextShop; } /** * @return string */ public function getFieldName() { return $this->fieldName; } /** * @return bool */ public function isRestrictedToContextShop() { return $this->isRestrictedToContextShop; } }