Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
14 | 1 | public static function fromAggreagteAndEventTypes($aggregateType, $eventType, $code = 0, \Exception $previous = null) |
|
15 | { |
||
16 | 1 | return new self( |
|
17 | sprintf( |
||
18 | 1 | 'The aggregate of type %s does not understand events of type %s', |
|
19 | $aggregateType, |
||
20 | $eventType |
||
21 | ), |
||
22 | $code, |
||
23 | $previous |
||
24 | ); |
||
25 | } |
||
26 | } |
||
27 |