Total Complexity | 3 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
12 | class Interval implements IntervalInterface |
||
13 | { |
||
14 | /** |
||
15 | * The low value of an interval is used as key to maintain order in BST. |
||
16 | * The insert and delete operations are same as insert and delete in self-balancing BST used. |
||
17 | */ |
||
18 | protected $low; |
||
19 | protected $high; |
||
20 | |||
21 | /** |
||
22 | * undocumented function. |
||
23 | * |
||
24 | * @return void |
||
25 | */ |
||
26 | public function __construct($low, $high) |
||
27 | { |
||
28 | $this->high = $high; |
||
29 | $this->low = $low; |
||
30 | } |
||
31 | |||
32 | public function getEnd(): int |
||
35 | } |
||
36 | |||
37 | public function getStart(): int |
||
42 |