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
3declare(strict_types=1);
4
5namespace Lorekeeper\Core\Item\Misc\Enhancement;
6
7use Lorekeeper\Core\Item\ItemLevel;
8use Psl\Option;
9
10final 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}