| Total Complexity | 5 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class VoiceCallManager extends Manager |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Create an instance of the avanak voice call sender driver. |
||
| 14 | * |
||
| 15 | * @return Avanak |
||
| 16 | */ |
||
| 17 | protected function createAvanakDriver(): Avanak |
||
| 18 | { |
||
| 19 | return $this->container->make(Avanak::class); |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Create an instance of the fake voice call sender driver. |
||
| 24 | * |
||
| 25 | * @return FakeSmsSender |
||
| 26 | */ |
||
| 27 | protected function createFakeDriver(): FakeSmsSender |
||
| 28 | { |
||
| 29 | return $this->container->make(FakeSmsSender::class); |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Get the default voice call driver name. |
||
| 34 | * |
||
| 35 | * @return string |
||
| 36 | */ |
||
| 37 | public function getDefaultDriver(): string |
||
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Set the default sms driver name. |
||
| 48 | * |
||
| 49 | * @param string $name |
||
| 50 | * |
||
| 51 | * @return void |
||
| 52 | */ |
||
| 53 | public function setDefaultDriver($name): void |
||
| 58 |