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.

MoonPhase   A
last analyzed

Complexity

Total Complexity 9

Size/Duplication

Total Lines 119
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 9
lcom 0
cbo 1
dl 0
loc 119
ccs 0
cts 18
cp 0
rs 10
c 0
b 0
f 0

9 Methods

Rating   Name   Duplication   Size   Complexity  
A percentIlluminated() 0 4 1
A ageOfMoon() 0 4 1
A phaseofMoon() 0 4 1
A hemisphere() 0 4 1
A currentTime() 0 4 1
A sunrise() 0 4 1
A sunset() 0 4 1
A moonrise() 0 4 1
A moonset() 0 4 1
1
<?php declare(strict_types=1);
2
3
namespace ApiClients\Client\WeatherUnderground\Resource\Astronomy;
4
5
use ApiClients\Foundation\Hydrator\Annotation\EmptyResource;
6
use ApiClients\Foundation\Hydrator\Annotation\Nested;
7
use ApiClients\Foundation\Resource\AbstractResource;
8
9
/**
10
 * @Nested(
11
 *     current_time="Time",
12
 *     sunrise="Time",
13
 *     sunset="Time",
14
 *     moonrise="Time",
15
 *     moonset="Time"
16
 * )
17
 * @EmptyResource("Astronomy\EmptyMoonPhase")
18
 */
19
abstract class MoonPhase extends AbstractResource implements MoonPhaseInterface
20
{
21
    /**
22
     * @var string
23
     */
24
    protected $percentIlluminated;
25
26
    /**
27
     * @var string
28
     */
29
    protected $ageOfMoon;
30
31
    /**
32
     * @var string
33
     */
34
    protected $phaseofMoon;
35
36
    /**
37
     * @var string
38
     */
39
    protected $hemisphere;
40
41
    /**
42
     * @var Time
43
     */
44
    protected $current_time;
45
46
    /**
47
     * @var Time
48
     */
49
    protected $sunrise;
50
51
    /**
52
     * @var Time
53
     */
54
    protected $sunset;
55
56
    /**
57
     * @var Time
58
     */
59
    protected $moonrise;
60
61
    /**
62
     * @var Time
63
     */
64
    protected $moonset;
65
66
    /**
67
     * @return string
68
     */
69
    public function percentIlluminated() : string
70
    {
71
        return $this->percentIlluminated;
72
    }
73
74
    /**
75
     * @return string
76
     */
77
    public function ageOfMoon() : string
78
    {
79
        return $this->ageOfMoon;
80
    }
81
82
    /**
83
     * @return string
84
     */
85
    public function phaseofMoon() : string
86
    {
87
        return $this->phaseofMoon;
88
    }
89
90
    /**
91
     * @return string
92
     */
93
    public function hemisphere() : string
94
    {
95
        return $this->hemisphere;
96
    }
97
98
    /**
99
     * @return Time
100
     */
101
    public function currentTime() : Time
102
    {
103
        return $this->current_time;
104
    }
105
106
    /**
107
     * @return Time
108
     */
109
    public function sunrise() : Time
110
    {
111
        return $this->sunrise;
112
    }
113
114
    /**
115
     * @return Time
116
     */
117
    public function sunset() : Time
118
    {
119
        return $this->sunset;
120
    }
121
122
    /**
123
     * @return Time
124
     */
125
    public function moonrise() : Time
126
    {
127
        return $this->moonrise;
128
    }
129
130
    /**
131
     * @return Time
132
     */
133
    public function moonset() : Time
134
    {
135
        return $this->moonset;
136
    }
137
}
138