Lines
0.00%
0 / 7
Methods
0.00%
0 / 2
Classes
0.00%
0 / 1
| Name | Lines | Methods | CRAP | ||||
|---|---|---|---|---|---|---|---|
| __construct | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | ||
| __debugInfo | 0.00% | 0 / 6 | 0.00% | 0 / 1 | 2 | ||
| 10 | final readonly class StoreSettings | |
| 11 | { | |
| 12 | public function __construct( | |
| 13 | #[SensitiveParameter] | |
| 14 | public string $dsn, | |
| 15 | public string $prefix, | |
| 16 | public Duration $timeout, | |
| 17 | public Duration $recoveryInterval, | |
| 18 | ) {} | |
| 19 | ||
| 20 | /** @return array{dsn: string, prefix: string, timeout: string, recovery_interval: string} */ | |
| 21 | public function __debugInfo(): array | |
| 22 | { | |
| 23 | return [ | |
| 24 | 'dsn' => '***', | |
| 25 | 'prefix' => $this->prefix, | |
| 26 | 'timeout' => (string) $this->timeout, | |
| 27 | 'recovery_interval' => (string) $this->recoveryInterval, | |
| 28 | ]; | |
| 29 | } | |
| 30 | } |