| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | public function resolve(string $dsn): TransportInterface |
||
| 28 | { |
||
| 29 | $dsnDto = Dsn::fromString($dsn); |
||
| 30 | foreach ($this->transports as $transport) { |
||
| 31 | if ($transport->supports($dsnDto)) { |
||
| 32 | return $transport->create($dsnDto); |
||
| 33 | } |
||
| 34 | } |
||
| 35 | |||
| 36 | return $this->transport->fromString($dsn); |
||
| 37 | } |
||
| 44 |