Conditions | 3 |
Paths | 3 |
Total Lines | 8 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
38 | public function getProvider(string $id): IProvider { |
||
39 | switch ($id) { |
||
40 | case PlaySMS::PROVIDER_ID: |
||
41 | return $this->container->query(PlaySMS::class); |
||
42 | case WebSms::PROVIDER_ID: |
||
43 | return $this->container->query(WebSms::class); |
||
44 | default: |
||
45 | throw new InvalidSmsProviderException("Provider <$id> does not exist"); |
||
46 | } |
||
50 |