GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Overview   A
last analyzed

Complexity

Total Complexity 7

Size/Duplication

Total Lines 93
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 7
lcom 0
cbo 1
dl 0
loc 93
ccs 14
cts 14
cp 1
rs 10
c 0
b 0
f 0

7 Methods

Rating   Name   Duplication   Size   Complexity  
A adsBlockedToday() 0 4 1
A adsPercentageToday() 0 4 1
A dnsQueriesToday() 0 4 1
A domainsBeingBlocked() 0 4 1
A queriesCached() 0 4 1
A queriesForwarded() 0 4 1
A uniqueDomains() 0 4 1
1
<?php declare(strict_types=1);
2
3
namespace ApiClients\Client\PiHole\Resource;
4
5
use ApiClients\Foundation\Hydrator\Annotation\EmptyResource;
6
use ApiClients\Foundation\Resource\AbstractResource;
7
8
/**
9
 * @EmptyResource("EmptyOverview")
10
 */
11
abstract class Overview extends AbstractResource implements OverviewInterface
12
{
13
    /**
14
     * @var int
15
     */
16
    protected $ads_blocked_today;
17
18
    /**
19
     * @var float
20
     */
21
    protected $ads_percentage_today;
22
23
    /**
24
     * @var int
25
     */
26
    protected $dns_queries_today;
27
28
    /**
29
     * @var int
30
     */
31
    protected $domains_being_blocked;
32
33
    /**
34
     * @var int
35
     */
36
    protected $queries_cached;
37
38
    /**
39
     * @var int
40
     */
41
    protected $queries_forwarded;
42
43
    /**
44
     * @var int
45
     */
46
    protected $unique_domains;
47
48
    /**
49
     * @return int
50
     */
51 4
    public function adsBlockedToday(): int
52
    {
53 4
        return $this->ads_blocked_today;
54
    }
55
56
    /**
57
     * @return float
58
     */
59 4
    public function adsPercentageToday(): float
60
    {
61 4
        return $this->ads_percentage_today;
62
    }
63
64
    /**
65
     * @return int
66
     */
67 4
    public function dnsQueriesToday(): int
68
    {
69 4
        return $this->dns_queries_today;
70
    }
71
72
    /**
73
     * @return int
74
     */
75 4
    public function domainsBeingBlocked(): int
76
    {
77 4
        return $this->domains_being_blocked;
78
    }
79
80
    /**
81
     * @return int
82
     */
83 4
    public function queriesCached(): int
84
    {
85 4
        return $this->queries_cached;
86
    }
87
88
    /**
89
     * @return int
90
     */
91 4
    public function queriesForwarded(): int
92
    {
93 4
        return $this->queries_forwarded;
94
    }
95
96
    /**
97
     * @return int
98
     */
99 4
    public function uniqueDomains(): int
100
    {
101 4
        return $this->unique_domains;
102
    }
103
}
104