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 | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Enhancement | 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\Core\Item\Misc\Enhancement; | |
| 6 | ||
| 7 | use Lorekeeper\Core\Item\ItemLevel; | |
| 8 | use Psl\Option; | |
| 9 | ||
| 10 | final readonly class Enhancement | |
| 11 | { | |
| 12 | /** @param Option\Option<EnhancementEffect> $effect */ | |
| 13 | public function __construct( | |
| 14 | public EnhancementType $type, | |
| 15 | public EnhancementRarity $rarity, | |
| 16 | public ItemLevel $level, | |
| 17 | public Option\Option $effect, | |
| 18 | ) {} | |
| 19 | } |