Total Complexity | 3 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class SentryService implements SentryServiceInterface |
||
10 | { |
||
11 | private $sentry; |
||
12 | private $issuesUrl; |
||
13 | |||
14 | public function __construct(Hub $sentry, string $issuesUrl) |
||
15 | { |
||
16 | $this->sentry = $sentry; |
||
17 | $this->issuesUrl = rtrim($issuesUrl, '/') . '/'; |
||
18 | } |
||
19 | |||
20 | public function captureException(Throwable $e): ?string { |
||
21 | return $this->sentry->captureException($e); |
||
22 | } |
||
23 | |||
24 | public function getIssueUrl(string $eventId): string { |
||
30 | } |
||
31 | } |
||
32 |