| Total Complexity | 6 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class SentryIntegration |
||
| 12 | { |
||
| 13 | public static function getAbstract(): string |
||
| 14 | { |
||
| 15 | if (class_exists(ServiceProvider::class)) { |
||
| 16 | return ServiceProvider::$abstract; |
||
| 17 | } |
||
| 18 | |||
| 19 | return 'sentry'; |
||
| 20 | } |
||
| 21 | |||
| 22 | public static function bound(): bool |
||
| 23 | { |
||
| 24 | return Container::getInstance()->bound(static::getAbstract()); |
||
| 25 | } |
||
| 26 | |||
| 27 | public static function captureException($exception): void |
||
| 31 | } |
||
| 32 | } |
||
| 33 | |||
| 34 | public static function getInstance(): Hub |
||
| 39 |