| Total Complexity | 4 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | final class BeforeSend implements StoppableEventInterface |
||
| 16 | { |
||
| 17 | private MessageInterface $message; |
||
| 18 | 9 | private bool $stopPropagation = false; |
|
| 19 | |||
| 20 | 9 | public function __construct(MessageInterface $message) |
|
| 21 | 9 | { |
|
| 22 | $this->message = $message; |
||
| 23 | } |
||
| 24 | |||
| 25 | public function getMessage(): MessageInterface |
||
| 26 | { |
||
| 27 | return $this->message; |
||
| 28 | } |
||
| 29 | |||
| 30 | public function stopPropagation(): void |
||
| 33 | 2 | } |
|
| 34 | 2 | ||
| 35 | public function isPropagationStopped(): bool |
||
| 38 | 9 | } |
|
| 39 | } |
||
| 40 |