Lines 0.00% 0 / 7
Functions and Methods 0.00% 0 / 2
Classes and Traits 0.00% 0 / 1
Name Lines Functions and Methods CRAP Classes and Traits
StoreSettings 0.00% 0 / 7 0.00% 0 / 2 6 0.00% 0 / 1
 __construct 0.00% 0 / 1 0.00% 0 / 1 2
 __debugInfo 0.00% 0 / 6 0.00% 0 / 1 2
1<?php
2
3declare(strict_types=1);
4
5namespace Stewart\Runtime\Ipc;
6
7use SensitiveParameter;
8use Stewart\Contracts\Time\Duration;
9
10final 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}