| Total Complexity | 3 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | final class Package |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * Current package version number |
||
| 13 | */ |
||
| 14 | const VERSION = "1.1.1"; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * The lowest version number this runtime is compatible with |
||
| 18 | */ |
||
| 19 | private const LOWEST_SUPPORTED_VERSION = '1.0.0-beta6'; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * The lowest version number this runtime is not compatible with |
||
| 23 | */ |
||
| 24 | private const LOWEST_UNSUPPORTED_VERSION = '2'; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Error message template |
||
| 28 | */ |
||
| 29 | private const ERROR_MSG = 'Unable to read router compiled with inroute version %s using runtime version %s.'; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Validate that version number is supported by the runtime |
||
| 33 | */ |
||
| 34 | public static function validateVersion(string $version): void |
||
| 45 |