FieldInterface.php 644 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Search\Adapter\Mysql\Field;
  7. /**
  8. * MySQL search field.
  9. *
  10. * @deprecated 102.0.0
  11. * @see \Magento\ElasticSearch
  12. */
  13. interface FieldInterface
  14. {
  15. const TYPE_FLAT = 1;
  16. const TYPE_FULLTEXT = 2;
  17. /**
  18. * Get type of index.
  19. *
  20. * @return int
  21. */
  22. public function getType();
  23. /**
  24. * Get ID of attribute.
  25. *
  26. * @return int
  27. */
  28. public function getAttributeId();
  29. /**
  30. * Get field nam.
  31. *
  32. * @return string
  33. */
  34. public function getColumn();
  35. }