DataMapperInterface.php 600 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Elasticsearch\Model\Adapter;
  7. /**
  8. * @deprecated 100.2.0
  9. * @see \Magento\Elasticsearch\Model\Adapter\BatchDataMapperInterface
  10. */
  11. interface DataMapperInterface
  12. {
  13. /**
  14. * Prepare index data for using in search engine metadata
  15. *
  16. * @param int $entityId
  17. * @param array $entityIndexData
  18. * @param int $storeId
  19. * @param array $context
  20. * @return array
  21. */
  22. public function map($entityId, array $entityIndexData, $storeId, $context = []);
  23. }