| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 51 | public function visit(Notification $notification, Request $request): Request |
||
| 52 | { |
||
| 53 | // Clone all visitors because \SplPriorityQueue remove object after iteration |
||
| 54 | $visitors = clone $this->visitors; |
||
| 55 | |||
| 56 | foreach ($visitors as $visitor) { |
||
| 57 | $request = $visitor->visit($notification, $request); |
||
| 58 | } |
||
| 59 | |||
| 60 | return $request; |
||
| 61 | } |
||
| 62 | } |
||
| 63 |