1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Framework\Search\Request\Aggregation;
- /**
- * Range
- * @SuppressWarnings(PHPMD.ShortVariable)
- */
- class Range
- {
- /**
- * @var int|null
- */
- protected $from;
- /**
- * @var int|null
- */
- protected $to;
- /**
- * @param int|null $from
- * @param int|null $to
- * @codeCoverageIgnore
- */
- public function __construct($from, $to)
- {
- $this->from = $from;
- $this->to = $to;
- }
- /**
- * Get From
- *
- * @return int|null
- * @codeCoverageIgnore
- */
- public function getFrom()
- {
- return $this->from;
- }
- /**
- * Get To
- *
- * @return int|null
- * @codeCoverageIgnore
- */
- public function getTo()
- {
- return $this->to;
- }
- }
|