Total Complexity | 4 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | class IgnoreErrorTransportWrapper implements TransportInterface |
||
14 | { |
||
15 | private ?Throwable $lastError = null; |
||
16 | |||
17 | public function __construct( |
||
18 | private TransportInterface $transport |
||
19 | ) { |
||
20 | } |
||
21 | |||
22 | /** |
||
23 | * @inheritDoc |
||
24 | */ |
||
25 | public function send(Message $message): int |
||
32 | 1 | } |
|
33 | } |
||
34 | |||
35 | /** |
||
36 | * Returns the last error |
||
37 | */ |
||
38 | public function getLastError(): ?Throwable |
||
41 | 1 | } |
|
42 | } |
||
43 |