| Total Complexity | 8 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 12 | final class TestTransportRegistry |
||
| 13 | { |
||
| 14 | /** @var TransportInterface[] */ |
||
| 15 | private array $transports = []; |
||
| 16 | |||
| 17 | public function register(string $name, TransportInterface $transport): void |
||
| 18 | { |
||
| 19 | $this->transports[$name] = $transport; |
||
| 20 | } |
||
| 21 | |||
| 22 | public function get(?string $name = null): TestTransport |
||
| 45 | } |
||
| 46 | } |
||
| 47 |