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