EsConfig.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Elasticsearch\Model\Adapter\Index\Config;
  7. use Magento\Framework\Config\Data;
  8. use Magento\Framework\Config\CacheInterface;
  9. use Magento\Framework\Config\ReaderInterface;
  10. use Magento\Framework\Serialize\SerializerInterface;
  11. class EsConfig extends Data implements EsConfigInterface
  12. {
  13. /**
  14. * @param ReaderInterface $reader
  15. * @param CacheInterface $cache
  16. * @param string $cacheId
  17. * @param SerializerInterface|null $serializer
  18. */
  19. public function __construct(
  20. ReaderInterface $reader,
  21. CacheInterface $cache,
  22. $cacheId,
  23. SerializerInterface $serializer = null
  24. ) {
  25. parent::__construct($reader, $cache, $cacheId, $serializer);
  26. }
  27. /**
  28. * {@inheritdoc}
  29. */
  30. public function getStemmerInfo()
  31. {
  32. return $this->get('stemmerInfo');
  33. }
  34. /**
  35. * {@inheritdoc}
  36. */
  37. public function getStopwordsInfo()
  38. {
  39. return $this->get('stopwordsInfo');
  40. }
  41. }