| 1 | <?php |
||
| 8 | class gwRangeExceptionInfo extends gwCoreExceptionInfo implements gwiExceptionInfo |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var int |
||
| 12 | */ |
||
| 13 | protected $value; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var int |
||
| 17 | */ |
||
| 18 | protected $maximum; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var int |
||
| 22 | */ |
||
| 23 | protected $minimum; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var string |
||
| 27 | */ |
||
| 28 | protected $note; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Constructor. |
||
| 32 | * |
||
| 33 | * @param int $value the actual value that caused the exception |
||
| 34 | * @param int $minimum the minimum legal value |
||
| 35 | * @param int $maximum the maximum legal value |
||
| 36 | * @param string $note an optional note |
||
| 37 | */ |
||
| 38 | public function __construct($value, $minimum, $maximum, $note = '') |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @return string |
||
| 48 | */ |
||
| 49 | public function fetch() |
||
| 63 | |||
| 64 | /** |
||
| 65 | * @return int |
||
| 66 | */ |
||
| 67 | public function getMaximum() |
||
| 71 | |||
| 72 | /** |
||
| 73 | * @return int |
||
| 74 | */ |
||
| 75 | public function getMinimum() |
||
| 79 | } |
||
| 80 |