# maxbuttons/7.10/assets/libraries/scssphp/src/Base/Range.php

MaxButtons – Create buttons, version 7.10. 48 lines.

- Page: https://pluginprobe.com/plugins/maxbuttons/7.10/code/assets/libraries/scssphp/src/Base/Range.php
- Raw: https://pluginprobe.com/plugins/maxbuttons/7.10/raw/assets/libraries/scssphp/src/Base/Range.php
- Modified: 2018-06-25T15:58:52+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/maxbuttons/7.10/code/assets/libraries/scssphp/src/Base/Range.php#L10-L20`.

```php
<?php
/**
 * SCSSPHP
 *
 * @copyright 2015-2018 Leaf Corcoran
 *
 * @license http://opensource.org/licenses/MIT MIT
 *
 * @link http://leafo.github.io/scssphp
 */

namespace Leafo\ScssPhp\Base;

/**
 * Range
 *
 * @author Anthon Pang <anthon.pang@gmail.com>
 */
class Range
{
    public $first;
    public $last;

    /**
     * Initialize range
     *
     * @param integer|float $first
     * @param integer|float $last
     */
    public function __construct($first, $last)
    {
        $this->first = $first;
        $this->last = $last;
    }

    /**
     * Test for inclusion in range
     *
     * @param integer|float $value
     *
     * @return boolean
     */
    public function includes($value)
    {
        return $value >= $this->first && $value <= $this->last;
    }
}

```
