/**
  * @param EventObserver $observer
  * @return $this
  */
 public function execute(EventObserver $observer)
 {
     $storeId = $observer->getData('store')->getId();
     foreach ($this->entityPool->getEntities() as $entityType) {
         $this->sequenceBuilder->setPrefix($storeId)->setSuffix($this->sequenceConfig->get('suffix'))->setStartValue($this->sequenceConfig->get('startValue'))->setStoreId($storeId)->setStep($this->sequenceConfig->get('step'))->setWarningValue($this->sequenceConfig->get('warningValue'))->setMaxValue($this->sequenceConfig->get('maxValue'))->setEntityType($entityType)->create();
     }
     return $this;
 }
 /**
  * {@inheritdoc}
  * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
  */
 public function install(ModuleDataSetupInterface $setup, ModuleContextInterface $context)
 {
     $defaultStoreIds = [0, 1];
     foreach ($defaultStoreIds as $storeId) {
         foreach ($this->entityPool->getEntities() as $entityType) {
             $this->sequenceBuilder->setPrefix($this->sequenceConfig->get('prefix'))->setSuffix($this->sequenceConfig->get('suffix'))->setStartValue($this->sequenceConfig->get('startValue'))->setStoreId($storeId)->setStep($this->sequenceConfig->get('step'))->setWarningValue($this->sequenceConfig->get('warningValue'))->setMaxValue($this->sequenceConfig->get('maxValue'))->setEntityType($entityType)->create();
         }
     }
 }