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.

WebHostReportResult   A
last analyzed

Complexity

Total Complexity 13

Size/Duplication

Total Lines 158
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 13
lcom 1
cbo 2
dl 0
loc 158
rs 10
c 0
b 0
f 0

13 Methods

Rating   Name   Duplication   Size   Complexity  
A getNoOfResults() 0 4 1
A setNoOfResults() 0 5 1
A getLastResultNo() 0 4 1
A setLastResultNo() 0 5 1
A getFirstResultNo() 0 4 1
A setFirstResultNo() 0 5 1
A getNotBefore() 0 4 1
A setNotBefore() 0 5 1
A getNotAfter() 0 4 1
A setNotAfter() 0 5 1
A importEntries() 0 7 1
A getEntries() 0 4 1
A setEntries() 0 5 1
1
<?php
2
namespace Checkdomain\Comodo\Model\Result;
3
4
/**
5
 * Class WebHostReportResult
6
 */
7
class WebHostReportResult extends AbstractResult
8
{
9
    /**
10
     * @var string
11
     */
12
    protected $serverUrl;
13
14
    /**
15
     * @var int
16
     */
17
    protected $noOfResults;
18
19
    /**
20
     * @var int
21
     */
22
    protected $lastResultNo;
23
24
    /**
25
     * @var int
26
     */
27
    protected $firstResultNo;
28
29
    /**
30
     * @var int
31
     */
32
    protected $notBefore;
33
34
    /**
35
     * @var int
36
     */
37
    protected $notAfter;
38
39
    /**
40
     * @var WebHostReportEntryCollection
41
     */
42
    protected $entries;
43
44
    /**
45
     * @return int
46
     */
47
    public function getNoOfResults()
48
    {
49
        return $this->noOfResults;
50
    }
51
52
    /**
53
     * @param int $noOfResults
54
     * @return WebHostReportResult
55
     */
56
    public function setNoOfResults($noOfResults)
57
    {
58
        $this->noOfResults = $noOfResults;
59
        return $this;
60
    }
61
62
    /**
63
     * @return int
64
     */
65
    public function getLastResultNo()
66
    {
67
        return $this->lastResultNo;
68
    }
69
70
    /**
71
     * @param int $lastResultNo
72
     * @return WebHostReportResult
73
     */
74
    public function setLastResultNo($lastResultNo)
75
    {
76
        $this->lastResultNo = $lastResultNo;
77
        return $this;
78
    }
79
80
    /**
81
     * @return int
82
     */
83
    public function getFirstResultNo()
84
    {
85
        return $this->firstResultNo;
86
    }
87
88
    /**
89
     * @param int $firstResultNo
90
     * @return WebHostReportResult
91
     */
92
    public function setFirstResultNo($firstResultNo)
93
    {
94
        $this->firstResultNo = $firstResultNo;
95
        return $this;
96
    }
97
98
    /**
99
     * @return int
100
     */
101
    public function getNotBefore()
102
    {
103
        return $this->notBefore;
104
    }
105
106
    /**
107
     * @param int $notBefore
108
     * @return WebHostReportResult
109
     */
110
    public function setNotBefore($notBefore)
111
    {
112
        $this->notBefore = $notBefore;
113
        return $this;
114
    }
115
116
    /**
117
     * @return int
118
     */
119
    public function getNotAfter()
120
    {
121
        return $this->notAfter;
122
    }
123
124
    /**
125
     * @param int $notAfter
126
     * @return WebHostReportResult
127
     */
128
    public function setNotAfter($notAfter)
129
    {
130
        $this->notAfter = $notAfter;
131
        return $this;
132
    }
133
134
    /**
135
     * @param array $webHostReportRawResult
136
     * @return WebHostReportResult
137
     */
138
    public function importEntries($webHostReportRawResult) {
139
140
        $this->setNoOfResults($webHostReportRawResult['noOfResults']);
141
        $this->entries = new WebHostReportEntryCollection($webHostReportRawResult);
142
143
        return $this;
144
    }
145
146
    /**
147
     * @return WebHostReportEntryCollection
148
     */
149
    public function getEntries()
150
    {
151
        return $this->entries;
152
    }
153
154
    /**
155
     * @param WebHostReportEntryCollection $entries
156
     * @return WebHostReportResult
157
     */
158
    public function setEntries($entries)
159
    {
160
        $this->entries = $entries;
161
        return $this;
162
    }
163
164
}
165