Lines 100.00% 2 / 2
Methods 100.00% 2 / 2
Classes 100.00% 1 / 1
Name Lines Methods CRAP
 __construct 100.00% 1 / 1 100.00% 1 / 1 1
 equals 100.00% 1 / 1 100.00% 1 / 1 3
12final readonly class QuestGroupId implements Equable
13{
14    public function __construct(
15        public QuestGroup $group,
16        public QuestGroupNumber $number,
17    ) {}
18
19    /**
20     * @param QuestGroupId $other
21     *
22     * @mago-expect analysis:redundant-logical-operation
23     */
24    public function equals(mixed $other): bool
25    {
26        return $other instanceof self && $other->group === $this->group && $other->number->equals($this->number);
27    }
28}