AggregationInterface.php 662 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Api\Search;
  7. /**
  8. * Faceted data
  9. */
  10. interface AggregationInterface
  11. {
  12. /**
  13. * Get Document field
  14. *
  15. * @param string $bucketName
  16. * @return \Magento\Framework\Api\Search\BucketInterface
  17. */
  18. public function getBucket($bucketName);
  19. /**
  20. * Get all Document fields
  21. *
  22. * @return \Magento\Framework\Api\Search\BucketInterface[]
  23. */
  24. public function getBuckets();
  25. /**
  26. * Get Document field names
  27. *
  28. * @return string[]
  29. */
  30. public function getBucketNames();
  31. }