1 | <?php |
||
5 | class TwilioConfig |
||
6 | { |
||
7 | /** @var array */ |
||
8 | private $config; |
||
9 | |||
10 | /** |
||
11 | * @param array $config |
||
12 | */ |
||
13 | 6 | public function __construct(array $config) |
|
14 | { |
||
15 | 6 | $this->config = $config; |
|
16 | 6 | } |
|
17 | |||
18 | 2 | public function usingUsernamePasswordAuth(): bool |
|
22 | |||
23 | 1 | public function usingTokenAuth(): bool |
|
27 | |||
28 | 1 | public function getAuthToken(): ?string |
|
32 | |||
33 | 2 | public function getUsername(): ?string |
|
37 | |||
38 | 1 | public function getPassword(): ?string |
|
42 | |||
43 | 2 | public function getAccountSid(): ?string |
|
47 | |||
48 | 3 | public function getFrom(): ?string |
|
52 | |||
53 | 1 | public function getAlphanumericSender(): ?string |
|
57 | |||
58 | 3 | public function getServiceSid(): ?string |
|
62 | |||
63 | 3 | public function getDebugTo(): ?string |
|
67 | |||
68 | public function getIgnoredErrorCodes(): array |
||
72 | |||
73 | public function isIgnoredErrorCode(int $code): bool |
||
81 | } |
||
82 |