PluginProbe
MaxButtons – Create buttons / 7.10
MaxButtons – Create buttons v7.10
6.23 6.24 6.25 6.26 6.26.1 6.27 6.28 6.3 6.4 6.5 6.6 6.7 6.8 6.9 7.0 7.1 7.1.1 7.1.2 7.1.3 7.10 7.11 7.13 7.13.1 7.13.2 7.13.3 All 100 releases
maxbuttons / assets / libraries / scssphp / src / Base / Range.php

Range.php in MaxButtons – Create buttons 7.10, at assets/libraries/scssphp/src/Base/Range.php

48 lines 788 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * SCSSPHP
4 *
5 * @copyright 2015-2018 Leaf Corcoran
6 *
7 * @license http://opensource.org/licenses/MIT MIT
8 *
9 * @link http://leafo.github.io/scssphp
10 */
11
12 namespace Leafo\ScssPhp\Base;
13
14 /**
15 * Range
16 *
17 * @author Anthon Pang <anthon.pang@gmail.com>
18 */
19 class Range
20 {
21 public $first;
22 public $last;
23
24 /**
25 * Initialize range
26 *
27 * @param integer|float $first
28 * @param integer|float $last
29 */
30 public function __construct($first, $last)
31 {
32 $this->first = $first;
33 $this->last = $last;
34 }
35
36 /**
37 * Test for inclusion in range
38 *
39 * @param integer|float $value
40 *
41 * @return boolean
42 */
43 public function includes($value)
44 {
45 return $value >= $this->first && $value <= $this->last;
46 }
47 }
48