Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
7 | 5 | public static function fromVersions($currentVersion, $expectedVersion, $code = 0, \Exception $previous = null) |
|
8 | { |
||
9 | 5 | return new self( |
|
10 | sprintf( |
||
11 | 5 | 'Current stream version %d does not match with the expected version %d', |
|
12 | $currentVersion, |
||
13 | $expectedVersion |
||
14 | ), |
||
15 | $code, |
||
16 | $previous |
||
17 | ); |
||
18 | } |
||
19 | } |
||
20 |