ObjectRelationProcessor.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Model\ResourceModel\Db;
  7. use Magento\Framework\DB\Adapter\AdapterInterface as Connection;
  8. /**
  9. * @api
  10. * @since 100.0.2
  11. */
  12. class ObjectRelationProcessor
  13. {
  14. /**
  15. * Process delete action
  16. *
  17. * @param TransactionManagerInterface $transactionManager
  18. * @param Connection $connection
  19. * @param string $table
  20. * @param string $condition
  21. * @param array $involvedData
  22. * @return void
  23. * @throws \LogicException
  24. * @SuppressWarnings(PHPMD.UnusedFormalParameter)
  25. */
  26. public function delete(
  27. TransactionManagerInterface $transactionManager,
  28. Connection $connection,
  29. $table,
  30. $condition,
  31. array $involvedData
  32. ) {
  33. $connection->delete($table, $condition);
  34. }
  35. /**
  36. * Validate integrity of the given data
  37. *
  38. * @param string $table
  39. * @param array $involvedData
  40. * @return void
  41. * @SuppressWarnings(PHPMD.UnusedFormalParameter)
  42. */
  43. public function validateDataIntegrity($table, array $involvedData)
  44. {
  45. return;
  46. }
  47. }