Lines
100.00%
1 / 1
Functions and Methods
100.00%
1 / 1
Classes and Traits
100.00%
1 / 1
| Name | Lines | Functions and Methods | CRAP | Classes and Traits | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Mention | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | 100.00% | 1 / 1 | |||
| __construct | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | |||||
| 1 | <?php | |
| 2 | ||
| 3 | declare(strict_types=1); | |
| 4 | ||
| 5 | namespace Lorekeeper\Server\Event\Mention; | |
| 6 | ||
| 7 | use Lorekeeper\Core\Item\ItemId; | |
| 8 | use Lorekeeper\Core\World\Faction\FactionId; | |
| 9 | use Lorekeeper\Core\World\Monster\MonsterId; | |
| 10 | ||
| 11 | /** | |
| 12 | * @template-covariant TAbout of ItemId|FactionId|MonsterId | |
| 13 | * @template-covariant TValue of object | |
| 14 | */ | |
| 15 | final readonly class Mention | |
| 16 | { | |
| 17 | /** | |
| 18 | * @param TAbout $about | |
| 19 | * @param TValue $value | |
| 20 | */ | |
| 21 | public function __construct( | |
| 22 | public ItemId|FactionId|MonsterId $about, | |
| 23 | public object $value, | |
| 24 | ) {} | |
| 25 | } |