1 | <?php |
||
16 | class Netgsm |
||
17 | { |
||
18 | protected $client; |
||
19 | protected $credentials; |
||
20 | protected $defaults; |
||
21 | |||
22 | /** |
||
23 | * Netgsm constructor. |
||
24 | * @param Client $client |
||
25 | * @param array $credentials |
||
26 | * @param array $defaults |
||
27 | */ |
||
28 | public function __construct(Client $client, array $credentials = [], array $defaults = []) |
||
34 | |||
35 | /** |
||
36 | * @param AbstractNetgsmMessage $netgsmMessage |
||
37 | * @return mixed |
||
38 | * @throws CouldNotSendNotification |
||
39 | * @throws Exceptions\IncorrectPhoneNumberFormatException |
||
40 | * @throws GuzzleException |
||
41 | */ |
||
42 | public function sendSms(AbstractNetgsmMessage $netgsmMessage) |
||
56 | |||
57 | /** |
||
58 | * Get sms status report between given dates. |
||
59 | * |
||
60 | * @param AbstractNetgsmReport $report |
||
61 | * @param $startDate |
||
62 | * @param $endDate |
||
63 | * @param array $filters |
||
64 | * @return Collection |
||
65 | * @throws GuzzleException |
||
66 | * @throws Exceptions\ReportException |
||
67 | */ |
||
68 | public function getReports( |
||
98 | |||
99 | /** |
||
100 | * Returns the remaining credits amount (TL) on the netgsm account. |
||
101 | * |
||
102 | * @return string |
||
103 | * @throws Exceptions\NetgsmException |
||
104 | * @throws GuzzleException |
||
105 | */ |
||
106 | public function getCredit() |
||
114 | |||
115 | /** |
||
116 | * Returns the available package list and their balances on the netgsm account. |
||
117 | * |
||
118 | * @return array |
||
119 | * @throws Exceptions\NetgsmException |
||
120 | * @throws GuzzleException |
||
121 | */ |
||
122 | public function getAvailablePackages(): Collection |
||
130 | |||
131 | /** |
||
132 | * @return NetgsmIys |
||
133 | */ |
||
134 | public function iys(): NetgsmIys |
||
141 | } |
||
142 |