Field.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. * @inheritdoc
  9. * @deprecated 102.0.0
  10. * @see \Magento\ElasticSearch
  11. */
  12. class Field implements FieldInterface
  13. {
  14. /**
  15. * @var string
  16. */
  17. private $column;
  18. /**
  19. * @var int|null
  20. */
  21. private $attributeId;
  22. /**
  23. * @var int
  24. */
  25. private $type;
  26. /**
  27. * @param string $column
  28. * @param int|null $attributeId
  29. * @param int $type
  30. */
  31. public function __construct($column, $attributeId = null, $type = self::TYPE_FULLTEXT)
  32. {
  33. $this->column = $column;
  34. $this->attributeId = $attributeId;
  35. $this->type = $type;
  36. }
  37. /**
  38. * Get column.
  39. *
  40. * @return string
  41. */
  42. public function getColumn()
  43. {
  44. return $this->column;
  45. }
  46. /**
  47. * Get attribute ID.
  48. *
  49. * @return int|null
  50. */
  51. public function getAttributeId()
  52. {
  53. return $this->attributeId;
  54. }
  55. /**
  56. * Get type.
  57. *
  58. * @return int
  59. */
  60. public function getType()
  61. {
  62. return $this->type;
  63. }
  64. }