Range.php 878 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. * Range
  9. * @SuppressWarnings(PHPMD.ShortVariable)
  10. */
  11. class Range
  12. {
  13. /**
  14. * @var int|null
  15. */
  16. protected $from;
  17. /**
  18. * @var int|null
  19. */
  20. protected $to;
  21. /**
  22. * @param int|null $from
  23. * @param int|null $to
  24. * @codeCoverageIgnore
  25. */
  26. public function __construct($from, $to)
  27. {
  28. $this->from = $from;
  29. $this->to = $to;
  30. }
  31. /**
  32. * Get From
  33. *
  34. * @return int|null
  35. * @codeCoverageIgnore
  36. */
  37. public function getFrom()
  38. {
  39. return $this->from;
  40. }
  41. /**
  42. * Get To
  43. *
  44. * @return int|null
  45. * @codeCoverageIgnore
  46. */
  47. public function getTo()
  48. {
  49. return $this->to;
  50. }
  51. }