| Total Complexity | 4 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Coverage | 52% |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | class Sms77Io extends AProvider { |
||
| 25 | private IClient $client; |
||
| 26 | |||
| 27 | 1 | public function __construct( |
|
| 28 | IClientService $clientService, |
||
| 29 | ) { |
||
| 30 | 1 | $this->client = $clientService->newClient(); |
|
| 31 | } |
||
| 32 | |||
| 33 | 1 | public function createSettings(): Settings { |
|
| 34 | 1 | return new Settings( |
|
| 35 | 1 | id: 'sms77io', |
|
| 36 | 1 | name: 'sms77.io', |
|
| 37 | 1 | fields: [ |
|
| 38 | 1 | new FieldDefinition( |
|
| 39 | 1 | field: 'api_key', |
|
| 40 | 1 | prompt: 'Please enter your sms77.io API key:', |
|
| 41 | 1 | ), |
|
| 42 | 1 | ] |
|
| 43 | 1 | ); |
|
| 44 | } |
||
| 45 | |||
| 46 | #[\Override] |
||
| 60 | } |
||
| 61 | } |
||
| 62 | } |
||
| 63 |