Lines 100.00% 3 / 3
Methods 100.00% 3 / 3
Classes 100.00% 1 / 1
Name Lines Methods CRAP
 maximum 100.00% 1 / 1 100.00% 1 / 1 1
 [Lorekeeper\Core\Game\Level\Level] __construct 100.00% 1 / 1 100.00% 1 / 1 1
 [Lorekeeper\Core\Game\Level\Level] __toString 100.00% 1 / 1 100.00% 1 / 1 1
10final readonly class ItemLevel extends Level
11{
12    #[Override]
13    protected static function maximum(): int
14    {
15        return 100;
16    }
17}

Inherited from Lorekeeper\Core\Game\Level\Level

15    final public function __construct(int $value)
16    {
17        $this->value = Type\int_range(min: 1, max: static::maximum())->assert($value);
18    }
23    final public function __toString(): string
24    {
25        return (string) $this->value;
26    }