DeleteInterface.php 521 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\EntityManager\Operation;
  7. use Magento\Framework\EntityManager\OperationInterface;
  8. /**
  9. * Interface for deleting entity
  10. */
  11. interface DeleteInterface extends OperationInterface
  12. {
  13. /**
  14. * Delete entity
  15. *
  16. * @param object $entity
  17. * @param array $arguments
  18. * @return object
  19. * @throws \Exception
  20. */
  21. public function execute($entity, $arguments = []);
  22. }