| 1 | <?php |
||
| 5 | abstract class Range { |
||
| 6 | |||
| 7 | protected static $range = []; |
||
| 8 | |||
| 9 | # Load range |
||
| 10 | |||
| 11 | protected static function init(string $file_name) { |
||
| 15 | |||
| 16 | # Check if item exists |
||
| 17 | |||
| 18 | public static function exists($key) { |
||
| 22 | |||
| 23 | # Validate key |
||
| 24 | |||
| 25 | public static function validate($key) { |
||
| 31 | |||
| 32 | # Get item by key |
||
| 33 | |||
| 34 | public static function get($key) { |
||
| 38 | |||
| 39 | # Get range array |
||
| 40 | |||
| 41 | public static function array() { |
||
| 45 | } |
||
| 46 | } |
||
| 47 |