1 | <?php |
||
7 | class TwilioConfig |
||
8 | { |
||
9 | /** |
||
10 | * @var array |
||
11 | */ |
||
12 | private $config; |
||
13 | |||
14 | /** |
||
15 | * TwilioConfig constructor. |
||
16 | * |
||
17 | * @param array $config |
||
18 | */ |
||
19 | 4 | public function __construct(array $config) |
|
23 | |||
24 | /** |
||
25 | * Get the auth token. |
||
26 | * |
||
27 | * @return string |
||
28 | */ |
||
29 | public function getAuthToken() |
||
33 | |||
34 | /** |
||
35 | * Get the username. |
||
36 | * |
||
37 | * @return string |
||
38 | */ |
||
39 | public function getUsername() |
||
43 | |||
44 | /** |
||
45 | * Get the password. |
||
46 | * |
||
47 | * @return string |
||
48 | */ |
||
49 | public function getPassword() |
||
53 | |||
54 | /** |
||
55 | * Get the account sid. |
||
56 | * |
||
57 | * @return string |
||
58 | */ |
||
59 | public function getAccountSid() |
||
63 | |||
64 | /** |
||
65 | * Get the default from address. |
||
66 | * |
||
67 | * @return string |
||
68 | */ |
||
69 | 3 | public function getFrom() |
|
73 | |||
74 | /** |
||
75 | * Get the alphanumeric sender. |
||
76 | * |
||
77 | * @return string|null |
||
78 | */ |
||
79 | 1 | public function getAlphanumericSender() |
|
87 | |||
88 | /** |
||
89 | * Get the service sid. |
||
90 | * |
||
91 | * @return string|null |
||
92 | */ |
||
93 | 3 | public function getServiceSid() |
|
101 | |||
102 | /** |
||
103 | * Returns universal phone number, which should receive all outgoing messages and calls. |
||
104 | * |
||
105 | * @return string|null |
||
106 | */ |
||
107 | 4 | public function getTo() |
|
111 | } |
||
112 |