EntityMetadataInterface.php 951 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\EntityManager;
  7. /**
  8. * Interface EntityMetadataInterface
  9. */
  10. interface EntityMetadataInterface
  11. {
  12. /**
  13. * @return string
  14. */
  15. public function getIdentifierField();
  16. /**
  17. * @return string
  18. */
  19. public function getLinkField();
  20. /**
  21. * @return string
  22. */
  23. public function getEntityTable();
  24. /**
  25. * @return string
  26. */
  27. public function getEntityConnectionName();
  28. /**
  29. * @return null|string
  30. */
  31. public function generateIdentifier();
  32. /**
  33. * @return string[]
  34. */
  35. public function getEntityContext();
  36. /**
  37. * @return null|string
  38. */
  39. public function getEavEntityType();
  40. /**
  41. * @return \Magento\Framework\DB\Adapter\AdapterInterface
  42. * @deprecated 100.1.0
  43. */
  44. public function getEntityConnection();
  45. }