Lines 100.00% 6 / 6
Methods 100.00% 4 / 4
Classes 100.00% 1 / 1
Covered by tests of size
Name Lines Methods CRAP
 getId 100.00% 1 / 1 100.00% 1 / 1 1
 setId 100.00% 2 / 2 100.00% 1 / 1 1
 getName 100.00% 1 / 1 100.00% 1 / 1 1
 setName 100.00% 2 / 2 100.00% 1 / 1 1
27class Tag
28{
29    private ?int $id = null;
30
31    private ?string $name = null;
32
33    public function getId(): int
34    {
35        return $this->id ?? 0;
36    }
37
38    public function setId(int $id): Tag
39    {
40        $this->id = $id;
41        return $this;
42    }
43
44    public function getName(): string
45    {
46        return $this->name ?? '';
47    }
48
49    public function setName(string $name): Tag
50    {
51        $this->name = $name;
52        return $this;
53    }
54}