Lines 100.00% 6 / 6
Methods 100.00% 6 / 6
Classes 100.00% 1 / 1
Covered by tests of size
Name Lines Methods CRAP
 __construct 100.00% 1 / 1 100.00% 1 / 1 1
 getMaxFaqs 100.00% 1 / 1 100.00% 1 / 1 1
 getMaxAttachmentSize 100.00% 1 / 1 100.00% 1 / 1 1
 getMaxUsers 100.00% 1 / 1 100.00% 1 / 1 1
 getMaxApiRequests 100.00% 1 / 1 100.00% 1 / 1 1
 getMaxCategories 100.00% 1 / 1 100.00% 1 / 1 1
22readonly class TenantQuotas
23{
24    public function __construct(
25        private ?int $maxFaqs = null,
26        private ?int $maxAttachmentSize = null,
27        private ?int $maxUsers = null,
28        private ?int $maxApiRequests = null,
29        private ?int $maxCategories = null,
30    ) {
31    }
32
33    public function getMaxFaqs(): ?int
34    {
35        return $this->maxFaqs;
36    }
37
38    public function getMaxAttachmentSize(): ?int
39    {
40        return $this->maxAttachmentSize;
41    }
42
43    public function getMaxUsers(): ?int
44    {
45        return $this->maxUsers;
46    }
47
48    public function getMaxApiRequests(): ?int
49    {
50        return $this->maxApiRequests;
51    }
52
53    public function getMaxCategories(): ?int
54    {
55        return $this->maxCategories;
56    }
57}