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 | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Credentials | 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 Lorekeeper\Client\Bot; | |
| 6 | ||
| 7 | use Lorekeeper\Core\Player\PlayerName; | |
| 8 | use SensitiveParameter; | |
| 9 | ||
| 10 | final readonly class Credentials | |
| 11 | { | |
| 12 | /** @param null|string $server */ | |
| 13 | public function __construct( | |
| 14 | public PlayerName $player, | |
| 15 | #[SensitiveParameter] | |
| 16 | public string $password, | |
| 17 | public ?string $server = null, | |
| 18 | ) {} | |
| 19 | } |