BulkManagementInterface.php 732 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Bulk;
  7. /**
  8. * Interface BulkManagementInterface
  9. * @api
  10. * @since 102.0.1
  11. */
  12. interface BulkManagementInterface
  13. {
  14. /**
  15. * Schedule new bulk
  16. *
  17. * @param string $bulkUuid
  18. * @param OperationInterface[] $operations
  19. * @param string $description
  20. * @param int $userId
  21. * @return boolean
  22. * @since 102.0.1
  23. */
  24. public function scheduleBulk($bulkUuid, array $operations, $description, $userId = null);
  25. /**
  26. * Delete bulk
  27. *
  28. * @param string $bulkId
  29. * @return boolean
  30. * @since 102.0.1
  31. */
  32. public function deleteBulk($bulkId);
  33. }