Total Complexity | 4 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Coverage | 50% |
Changes | 0 |
1 | <?php |
||
24 | class ClockworkSMS 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: 'clockworksms', |
|
36 | 1 | name: 'ClockworkSMS', |
|
37 | 1 | fields: [ |
|
38 | 1 | new FieldDefinition( |
|
39 | 1 | field: 'apitoken', |
|
40 | 1 | prompt: 'Please enter your clockworksms api token:', |
|
41 | 1 | ), |
|
42 | 1 | ] |
|
43 | 1 | ); |
|
44 | } |
||
45 | |||
46 | #[\Override] |
||
61 | } |
||
62 | } |
||
63 | } |
||
64 |