Metric.php 563 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Search\Request\Aggregation;
  7. /**
  8. * Metric
  9. */
  10. class Metric
  11. {
  12. /**
  13. * @var string
  14. */
  15. protected $type;
  16. /**
  17. * @param string $type
  18. * @codeCoverageIgnore
  19. */
  20. public function __construct($type)
  21. {
  22. $this->type = $type;
  23. }
  24. /**
  25. * Get Type
  26. *
  27. * @return string
  28. * @codeCoverageIgnore
  29. */
  30. public function getType()
  31. {
  32. return $this->type;
  33. }
  34. }