CheckIfExists.php 758 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\AsynchronousOperations\Model\ResourceModel\Operation;
  7. use Magento\Framework\EntityManager\Operation\CheckIfExistsInterface;
  8. use Magento\Framework\App\ResourceConnection;
  9. /**
  10. * CheckIfExists operation for list of bulk operations.
  11. */
  12. class CheckIfExists implements CheckIfExistsInterface
  13. {
  14. /**
  15. * Always returns false because all operations will be saved using insertOnDuplicate query.
  16. *
  17. * @param object $entity
  18. * @param array $arguments
  19. * @return bool
  20. * @SuppressWarnings(PHPMD.UnusedFormalParameter)
  21. */
  22. public function execute($entity, $arguments = [])
  23. {
  24. return false;
  25. }
  26. }