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