Total Complexity | 3 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
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) |
||
46 | } |
||
47 | } |
||
48 |