Lines
0.00%
0 / 1
Functions and Methods
0.00%
0 / 1
Classes and Traits
0.00%
0 / 1
| Name | Lines | Functions and Methods | CRAP | Classes and Traits | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| ConnectionConfig | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | 0.00% | 0 / 1 | |||
| __construct | 0.00% | 0 / 1 | 0.00% | 0 / 1 | 2 | |||||
| 1 | <?php | |
| 2 | ||
| 3 | declare(strict_types=1); | |
| 4 | ||
| 5 | namespace Stewart\Client\Connection; | |
| 6 | ||
| 7 | use SensitiveParameter; | |
| 8 | use Stewart\Contracts\Time\Duration; | |
| 9 | ||
| 10 | final readonly class ConnectionConfig | |
| 11 | { | |
| 12 | public function __construct( | |
| 13 | public HomeAssistantUrl $url, | |
| 14 | #[SensitiveParameter] | |
| 15 | public string $token, | |
| 16 | public Duration $connectTimeout, | |
| 17 | public Duration $commandTimeout, | |
| 18 | public ?Duration $heartbeatInterval, | |
| 19 | public int $messageSizeLimit = 64 * 1024 * 1024, | |
| 20 | public int $frameSizeLimit = 64 * 1024 * 1024, | |
| 21 | public int $heartbeatMissedLimit = 3, | |
| 22 | public int $eventBufferLimit = 10_000, | |
| 23 | ) {} | |
| 24 | } |