| Conditions | 3 |
| Paths | 3 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 4.679 |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | 4 | #[\Override] |
|
| 37 | public static function getProviderId(): string { |
||
| 38 | 4 | if (static::SCHEMA['id'] ?? null) { |
|
| 39 | 4 | return static::SCHEMA['id']; |
|
| 40 | } |
||
| 41 | $id = self::getIdFromProviderFqcn(static::class); |
||
| 42 | if ($id === null) { |
||
| 43 | throw new \LogicException('Cannot derive gateway id from FQCN: ' . static::class); |
||
| 44 | } |
||
| 45 | return $id; |
||
| 46 | } |
||
| 60 |