Total Complexity | 4 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class FakeSmsSender extends Driver |
||
8 | { |
||
9 | /** |
||
10 | * The Faker sms send sms success of fail. |
||
11 | * |
||
12 | * @var bool |
||
13 | */ |
||
14 | public static bool $successSend = true; |
||
15 | |||
16 | public function __construct(protected array $settings) |
||
17 | { |
||
18 | $this->from = data_get($this->settings, 'from'); |
||
19 | } |
||
20 | |||
21 | /** |
||
22 | * Send sms method for Magfa. |
||
23 | * |
||
24 | * This method send sms and save log to db. |
||
25 | * |
||
26 | * @return bool |
||
27 | */ |
||
28 | public function send(): bool |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * Return fake balance :D. |
||
43 | * |
||
44 | * @return string |
||
45 | */ |
||
46 | public function getBalance(): string |
||
51 |