Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
40 | private function getGatewayForDatabasePlatform(string $currentDatabasePlatformName): Gateway |
||
41 | { |
||
42 | foreach ($this->gateways as $databasePlatformName => $gateway) { |
||
43 | if ($currentDatabasePlatformName === $databasePlatformName) { |
||
44 | return $gateway; |
||
45 | } |
||
46 | } |
||
47 | |||
48 | return $this->fallbackGateway; |
||
49 | } |
||
50 | } |
||
51 |