Lines 100.00% 2 / 2
Methods 100.00% 2 / 2
Classes 100.00% 1 / 1
Name Lines Methods CRAP
 [Lorekeeper\Core\Support\PositiveInteger] __construct 100.00% 1 / 1 100.00% 1 / 1 1
 [Lorekeeper\Core\Support\PositiveInteger] __toString 100.00% 1 / 1 100.00% 1 / 1 1
10final readonly class MonsterSpawnId extends PositiveInteger implements Targetable {}

Inherited from Lorekeeper\Core\Support\PositiveInteger

15    final public function __construct(int $value)
16    {
17        $this->value = Type\positive_int()->assert($value);
18    }
20    final public function __toString(): string
21    {
22        return (string) $this->value;
23    }