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 |
||
78 | */ |
||
79 | 1 | public function getAlphanumericSender() |
|
85 | |||
86 | /** |
||
87 | * Get the service sid. |
||
88 | * |
||
89 | * @return string |
||
90 | */ |
||
91 | 3 | public function getServiceSid() |
|
97 | |||
98 | /** |
||
99 | * Returns list of codes for Twilio errors, which should be ignored (suppressed). |
||
100 | * |
||
101 | * @see https://www.twilio.com/docs/api/errors |
||
102 | * |
||
103 | * @return array |
||
104 | */ |
||
105 | public function getIgnoredErrorCodes() |
||
114 | } |
||
115 |