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.
Completed
Push — master ( 9b76ad...4355f8 )
by Cees-Jan
9s
created

SunPhase   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 28
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A sunrise() 0 4 1
A sunset() 0 4 1
1
<?php declare(strict_types=1);
2
3
namespace ApiClients\Client\WeatherUnderground\Resource\Astronomy;
4
5
use ApiClients\Foundation\Hydrator\Annotations\EmptyResource;
6
use ApiClients\Foundation\Hydrator\Annotations\Nested;
7
use ApiClients\Foundation\Resource\AbstractResource;
8
9
/**
10
 * @Nested(
11
 *     sunrise="Time",
12
 *     sunset="Time"
13
 * )
14
 * @EmptyResource("Astronomy\EmptySunPhase")
15
 */
16
abstract class SunPhase extends AbstractResource implements SunPhaseInterface
17
{
18
    /**
19
     * @var Time
20
     */
21
    protected $sunrise;
22
23
    /**
24
     * @var Time
25
     */
26
    protected $sunset;
27
28
    /**
29
     * @return Time
30
     */
31
    public function sunrise() : Time
32
    {
33
        return $this->sunrise;
34
    }
35
36
    /**
37
     * @return Time
38
     */
39
    public function sunset() : Time
40
    {
41
        return $this->sunset;
42
    }
43
}
44