* @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; /** * Shop restriction object holds the shop ids for which restriction is being applied and the fields which are impacted * by the certain shop restriction. */ class ShopRestriction { /** * @var int[] */ private $shopIds; /** * @var ShopRestrictionField[] */ private $shopRestrictionFields; /** * @param int[] $shopIds * @param ShopRestrictionField[] $shopRestrictionFields */ public function __construct(array $shopIds, array $shopRestrictionFields) { $this->shopIds = $shopIds; $this->shopRestrictionFields = $shopRestrictionFields; } /** * @return int[] */ public function getShopIds() { return $this->shopIds; } /** * @return ShopRestrictionField[] */ public function getShopRestrictionFields() { return $this->shopRestrictionFields; } }