| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 37 | 2 | public static function forVersion($version, array $knownVersions, Exception $cause = null) |
|
| 38 | { |
||
| 39 | 2 | usort($knownVersions, 'version_compare'); |
|
| 40 | |||
| 41 | 2 | return new static(sprintf( |
|
| 42 | 'Cannot process JSON at version %s. The supported versions '. |
||
| 43 | 2 | 'are %s.', |
|
| 44 | $version, |
||
| 45 | 2 | implode(', ', $knownVersions) |
|
| 46 | 2 | ), 0, $cause); |
|
| 47 | } |
||
| 48 | } |
||
| 49 |