|
31 | 31 | /** |
32 | 32 | * @internal |
33 | 33 | */ |
34 | | -class ApiClient |
| 34 | +final readonly class ApiClient |
35 | 35 | { |
36 | | - private readonly ProjectAwareAuthResourceUrlBuilder|TenantAwareAuthResourceUrlBuilder $awareAuthResourceUrlBuilder; |
| 36 | + private ProjectAwareAuthResourceUrlBuilder|TenantAwareAuthResourceUrlBuilder $awareAuthResourceUrlBuilder; |
37 | 37 |
|
38 | | - private readonly AuthResourceUrlBuilder $authResourceUrlBuilder; |
| 38 | + private AuthResourceUrlBuilder $authResourceUrlBuilder; |
39 | 39 |
|
40 | 40 | /** |
41 | 41 | * @param non-empty-string $projectId |
42 | 42 | * @param non-empty-string|null $tenantId |
43 | 43 | */ |
44 | 44 | public function __construct( |
45 | | - private readonly string $projectId, |
46 | | - private readonly ?string $tenantId, |
47 | | - private readonly ClientInterface $client, |
48 | | - private readonly GuzzleHandler $signInHandler, |
49 | | - private readonly ClockInterface $clock, |
50 | | - private readonly AuthApiExceptionConverter $errorHandler, |
| 45 | + private string $projectId, |
| 46 | + private ?string $tenantId, |
| 47 | + private ClientInterface $client, |
| 48 | + private GuzzleHandler $signInHandler, |
| 49 | + private ClockInterface $clock, |
| 50 | + private AuthApiExceptionConverter $errorHandler, |
51 | 51 | ) { |
52 | 52 | $this->awareAuthResourceUrlBuilder = $tenantId !== null |
53 | 53 | ? TenantAwareAuthResourceUrlBuilder::forProjectAndTenant($projectId, $tenantId) |
|
0 commit comments