1 | <?php |
||
7 | final class IndexOutOfBoundsException extends OutOfBoundsException implements OpenConextValueException |
||
8 | { |
||
9 | /** |
||
10 | * @var int |
||
11 | */ |
||
12 | private $invalidIndex; |
||
13 | |||
14 | /** |
||
15 | * @var int|null |
||
16 | */ |
||
17 | private $minimumIndex; |
||
18 | |||
19 | /** |
||
20 | * @var int|null |
||
21 | */ |
||
22 | private $maximumIndex; |
||
23 | |||
24 | /** |
||
25 | * @param int $invalidIndex |
||
26 | * @param int $minimumIndex |
||
27 | * @return IndexOutOfBoundsException |
||
28 | */ |
||
29 | public static function tooLow($invalidIndex, $minimumIndex) |
||
39 | |||
40 | /** |
||
41 | * @param int $invalidIndex |
||
42 | * @param int $maximumIndex |
||
43 | * @return IndexOutOfBoundsException |
||
44 | */ |
||
45 | public static function tooHigh($invalidIndex, $maximumIndex) |
||
55 | |||
56 | /** |
||
57 | * @return int |
||
58 | */ |
||
59 | public function getInvalidIndex() |
||
63 | |||
64 | /** |
||
65 | * @return int|null |
||
66 | */ |
||
67 | public function getMinimumIndex() |
||
71 | |||
72 | /** |
||
73 | * @return int|null |
||
74 | */ |
||
75 | public function getMaximumIndex() |
||
79 | } |
||
80 |