Lines
100.00%
1 / 1
Methods
100.00%
1 / 1
Classes
100.00%
1 / 1
| Name | Lines | Methods | CRAP | ||||
|---|---|---|---|---|---|---|---|
| __construct | n/a | 0 / 0 | n/a | 0 / 0 | 1 | ||
| toMessage | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | ||
| 9 | final readonly class Authenticate | |
| 10 | { | |
| 11 | public function __construct(#[SensitiveParameter] private string $accessToken) {} | |
| 12 | ||
| 13 | /** @return array<string, string> */ | |
| 14 | public function toMessage(): array | |
| 15 | { | |
| 16 | return ['type' => 'auth', 'access_token' => $this->accessToken]; | |
| 17 | } | |
| 18 | } |