Lines
100.00%
1 / 1
Methods
100.00%
1 / 1
Classes
100.00%
1 / 1
| Name | Lines | Methods | CRAP | ||||
|---|---|---|---|---|---|---|---|
| __construct | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | ||
| 10 | final readonly class ItemReward implements QuestReward | |
| 11 | { | |
| 12 | /** @var positive-int */ | |
| 13 | public int $quantity; | |
| 14 | ||
| 15 | public function __construct( | |
| 16 | public ItemId $itemId, | |
| 17 | public DropRate $dropRate, | |
| 18 | int $quantity, | |
| 19 | public ItemRewardType $type, | |
| 20 | ) { | |
| 21 | $this->quantity = Type\positive_int()->assert($quantity); | |
| 22 | } | |
| 23 | } |