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