Conditions | 2 |
Paths | 2 |
Total Lines | 6 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
28 | public static function wrap(object $message): Envelope |
||
29 | { |
||
30 | $envelope = Envelope::wrap($message); |
||
31 | $hasDelayedStamp = null !== $envelope->last(DispatchAfterCurrentBusStamp::class); |
||
32 | |||
33 | return $hasDelayedStamp ? $envelope : $envelope->with(new DispatchAfterCurrentBusStamp()); |
||
34 | } |
||
36 |