| Total Complexity | 3 | 
| Total Lines | 20 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 0 | ||
| 1 | <?php | ||
| 12 | final class PHPTransportFactory implements TransportFactoryInterface | ||
| 13 | { | ||
| 14 | /** | ||
| 15 | * @var EventEmitterInterface | ||
| 16 | */ | ||
| 17 | private EventEmitterInterface $emitter; | ||
| 18 | |||
| 19 | public function __construct(?EventEmitterInterface $emitter = null) | ||
| 20 |     { | ||
| 21 | 5 | $this->emitter = $emitter ?? new EventEmitter(); | |
| 22 | } | ||
| 23 | 5 | ||
| 24 | 5 | public function supports(string $dsn): bool | |
| 25 |     { | ||
| 26 | 4 | return 0 === \strpos($dsn, 'php://'); | |
| 27 | } | ||
| 28 | 4 | ||
| 29 | public function create(string $dsn): PromiseInterface | ||
| 32 | } | ||
| 33 | } | ||
| 34 |