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