Total Complexity | 4 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class SMSOffice |
||
9 | { |
||
10 | /** @var string */ |
||
11 | protected $apiUrl = 'http://smsoffice.ge/api/v2/send'; |
||
12 | |||
13 | /** @var HttpClient */ |
||
14 | protected $httpClient; |
||
15 | |||
16 | /** @var string */ |
||
17 | protected $key; |
||
18 | |||
19 | /** @var string */ |
||
20 | protected $sender; |
||
21 | |||
22 | /** |
||
23 | * SMSOffice constructor. |
||
24 | * @param $key |
||
25 | * @param $sender |
||
26 | */ |
||
27 | 7 | public function __construct($key, $sender) |
|
35 | ]); |
||
36 | 7 | } |
|
37 | |||
38 | /** |
||
39 | * @param $params |
||
40 | * @throws DomainException |
||
41 | */ |
||
42 | 3 | public function send($params) |
|
60 |