Set a specified store ID value

@param int $store
@return $this
557279
public function getStoreId()
    {
        if (!$this->_storeId){
            $this->_storeId = $this->_storeManager->getStore()->getId();
        }
        return $this->_storeId;
    }
973895
public function set($identifier, $value)
    {
        $this->internalSet($this->configsContainer, $identifier, $value);

        return $this;
    }
1145461
public function isStoreSelected(\Magento\Store\Model\Store $store)
    {
        return $this->getStoreId() !== null && (int) $this->getStoreId() === (int) $store->getId();
    }
975807
private function processAbandonedCartsProgramEnrolmentAutomation($store)
    {
        $storeId = $store->getId();
        $programId = $this->helper->getScopeConfig()->getValue(
            \Dotdigitalgroup\Email\Helper\Config::XML_PATH_LOSTBASKET_ENROL_TO_PROGRAM_ID,
            \Magento\Store\Model\ScopeInterface::SCOPE_STORE,
            $storeId
        );

        if (empty($programId) || $programId === "0") {
            return;
        }

        $updated = $this->interval->getAbandonedCartProgramEnrolmentWindow($storeId);

        $quoteCollection = $this->getStoreQuotesForGuestsAndCustomers($storeId, $updated);

        foreach ($quoteCollection as $quote) {
            $this->saver->save($quote, $store, $programId);
            $this->cartInsight->send($quote, $storeId);
        }
    }
100261
public function uploadConfig($store)
    {
        // Upload the config files for this index
        $store->uploadString(
            $this->getIndexName(),
            'schema.xml',
            (string)$this->generateSchema()
        );

        // Upload additional files
        foreach (glob($this->getExtrasPath() . '/*') as $file) {
            if (is_file($file)) {
                $store->uploadFile($this->getIndexName(), $file);
            }
        }
    }
202562
protected function setStore($store_id)
    {
        $this->data_store = array();

        if (is_numeric($store_id)) {

            $this->data_store = $this->store->get($store_id);

            if (empty($this->data_store)) {
                $this->outputHttpStatus(404);
            }
        }

        $this->prepareStore($this->data_store);
    }
750518
public function setId($v)
    {
        if ($v !== null) {
            $v = (int) $v;
        }

        if ($this->id !== $v) {
            $this->id = $v;
            $this->modifiedColumns[DealerShedulesVersionTableMap::ID] = true;
        }

        if ($this->aDealerShedules !== null && $this->aDealerShedules->getId() !== $v) {
            $this->aDealerShedules = null;
        }


        return $this;
    }
171030
public function set($key, $value)
    {
        DotArray::set($this->getStorage(), $key,$value);

        return $this;
    }
1321367
public function setId($v)
    {
        if ($v !== null) {
            $v = (int) $v;
        }

        if ($this->id !== $v) {
            $this->id = $v;
            $this->modifiedColumns[CustomerGroupI18nTableMap::ID] = true;
        }

        if ($this->aCustomerGroup !== null && $this->aCustomerGroup->getId() !== $v) {
            $this->aCustomerGroup = null;
        }


        return $this;
    }
869677
public function filter(&$store)
    {
        foreach ($store as $key => &$value) {
            $value = is_string($value) ? trim($value) : $value;
            $empty = $value === null || (is_array($value) && empty($value));

            $empty = $empty || (is_scalar($value) && $value !== false && (string) $value === '');

            if ($empty) {
                $store[$key] = null;
            } else {
                if (is_object($value)) {
                    $value = (array) $value;
                }
                if (is_array($value)) {
                    $this->filter($value);
                }
            }
        }
    }
1043517
protected function updateIndex($instance, $store)
    {
        $index = $instance->getIndexName();
        $this->getLogger()->info("Configuring $index.");

        // Upload the config files for this index
        $this->getLogger()->info("Uploading configuration ...");
        $instance->uploadConfig($store);

        // Then tell Solr to use those config files
        $service = Solr::service();
        if ($service->coreIsActive($index)) {
            $this->getLogger()->info("Reloading core ...");
            $service->coreReload($index);
        } else {
            $this->getLogger()->info("Creating core ...");
            $service->coreCreate($index, $store->instanceDir($index));
        }

        $this->getLogger()->info("Done");
    }
1289768
public function setStorage($storage)
    {
        $allowedValues = $this->getStorageAllowableValues();
        if (!is_null($storage) && !in_array($storage, $allowedValues, true)) {
            throw new \InvalidArgumentException(
                sprintf(
                    "Invalid value for 'storage', must be one of '%s'",
                    implode("', '", $allowedValues)
                )
            );
        }
        $this->container['storage'] = $storage;

        return $this;
    }
177960
public function getStoreId()
    {
        if (!$this->hasData('store_id')) {
            $this->setData('store_id', (int) $this->getRequest()->getParam($this->getStoreVarName()));
        }

        return $this->getData('store_id');
    }
757895
public function setId($id)
    {
       	if ($id !== null && is_numeric($id)) {
            $id = (int) $id;
        }
        $this->id = $id;

        return $this;
    }
689107
private function setValue($value, $store)
    {
        if (\in_array($this->attribs['type'], array('checkbox','select'))) {
            if (\is_null($value)) {
                $value = array();
            }
            $this->props['values'] = (array) $value;
        } else {
            $this->attribs['value'] = $value;
        }
        if ($store) {
            if ($this->props['setValRaw']) {
                \call_user_func($this->props['setValRaw'], $this, $value);
            } elseif ($this->form) {
                $this->form->setValue($this->attribs['name'], $value, $this->props['pageI']);
            }
        }
    }
738382
public function setId($v)
    {
        if ($v !== null) {
            $v = (int) $v;
        }

        if ($this->id !== $v) {
            $this->id = $v;
            $this->modifiedColumns[DealerAdminVersionTableMap::ID] = true;
        }

        if ($this->aDealerAdmin !== null && $this->aDealerAdmin->getId() !== $v) {
            $this->aDealerAdmin = null;
        }


        return $this;
    }
1010894
public function preventOverlapping(StoreInterface $store = null)
    {
        $lockStore = $store ?: $this->createDefaultLockStore();
        $this->preventOverlapping = true;
        $this->lockFactory = new Factory($lockStore);

        // Skip the event if it's locked (processing)
        $this->skip(function () {
            $lock = $this->createLockObject();
            $lock->acquire();

            return !$lock->isAcquired();
        });

        // Delete the lock file when the event is completed
        $this->after(function (): void {
            $this->releaseLock();
        });

        return $this;
    }