Lines 100.00% 3 / 3
Methods 100.00% 3 / 3
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] equals 100.00% 1 / 1 100.00% 1 / 1 2
 [Lorekeeper\Core\Support\PositiveInteger] __toString 100.00% 1 / 1 100.00% 1 / 1 1
10final readonly class PlayerSpawnId extends PositiveInteger implements Targetable {}

Inherited from Lorekeeper\Core\Support\PositiveInteger

19    final public function __construct(int $value)
20    {
21        $this->value = Type\positive_int()->assert($value);
22    }
29    final public function equals(mixed $other): bool
30    {
31        return $other instanceof static && $other->value === $this->value;
32    }
34    final public function __toString(): string
35    {
36        return (string) $this->value;
37    }