| Total Complexity | 6 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Coverage | 61.53% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | final class InvoiceConfig extends AbstractConfig |
||
| 11 | { |
||
| 12 | 1 | public function getCallback(): string |
|
| 13 | { |
||
| 14 | 1 | return sprintf('https://%s/%s', $this->getDomain(), $this->getReceiver()); |
|
| 15 | } |
||
| 16 | |||
| 17 | 1 | public function getLnAddress(): string |
|
| 18 | { |
||
| 19 | 1 | return sprintf('%s@%s', $this->getReceiver(), $this->getDomain()); |
|
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @return array{ |
||
|
|
|||
| 24 | * api_endpoint: string, |
||
| 25 | * api_key: string, |
||
| 26 | * } |
||
| 27 | */ |
||
| 28 | public function getBackendOptionsFor(string $backend): array |
||
| 38 | } |
||
| 39 | |||
| 40 | 1 | private function getDomain(): string |
|
| 43 | } |
||
| 44 | |||
| 45 | 1 | private function getReceiver(): string |
|
| 50 |