Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
MassSchedule Class Reference

Public Member Functions

 __construct (IdentityGeneratorInterface $identityService, ItemStatusInterfaceFactory $itemStatusInterfaceFactory, AsyncResponseInterfaceFactory $asyncResponseFactory, BulkManagementInterface $bulkManagement, LoggerInterface $logger, OperationRepository $operationRepository, UserContextInterface $userContext=null)
 

Detailed Description

Class MassSchedule used for adding multiple entities as Operations to Bulk Management with the status tracking

@SuppressWarnings(PHPMD.CouplingBetweenObjects) Suppressed without refactoring to not introduce BiC

Definition at line 29 of file MassSchedule.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( IdentityGeneratorInterface  $identityService,
ItemStatusInterfaceFactory  $itemStatusInterfaceFactory,
AsyncResponseInterfaceFactory  $asyncResponseFactory,
BulkManagementInterface  $bulkManagement,
LoggerInterface  $logger,
OperationRepository  $operationRepository,
UserContextInterface  $userContext = null 
)

Initialize dependencies.

Parameters
IdentityGeneratorInterface$identityService
ItemStatusInterfaceFactory$itemStatusInterfaceFactory
AsyncResponseInterfaceFactory$asyncResponseFactory
BulkManagementInterface$bulkManagement
LoggerInterface$logger
OperationRepository$operationRepository
UserContextInterface$userContext

Definition at line 77 of file MassSchedule.php.

85  {
86  $this->identityService = $identityService;
87  $this->itemStatusInterfaceFactory = $itemStatusInterfaceFactory;
88  $this->asyncResponseFactory = $asyncResponseFactory;
89  $this->bulkManagement = $bulkManagement;
90  $this->logger = $logger;
91  $this->operationRepository = $operationRepository;
92  $this->userContext = $userContext ?: ObjectManager::getInstance()->get(UserContextInterface::class);
93  }

The documentation for this class was generated from the following file: