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.

AllDay   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 55.56%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 25
ccs 5
cts 9
cp 0.5556
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
A jsonSerialize() 0 7 1
1
<?php
2
3
declare(strict_types = 1);
4
5
namespace Speicher210\BusinessHours\Day;
6
7
use Speicher210\BusinessHours\Day\Time\AllDayTimeInterval;
8
9
/**
10
 * A day with an all day open interval.
11
 */
12
class AllDay extends Day
13
{
14
    /**
15
     * @param integer $dayOfWeek The day of the week.
16
     */
17 15
    public function __construct(int $dayOfWeek)
18
    {
19
        $openingHoursIntervals = [
20 15
            new AllDayTimeInterval(),
21 15
        ];
22
23 15
        parent::__construct($dayOfWeek, $openingHoursIntervals);
24 15
    }
25
26
    /**
27
     * {@inheritdoc}
28
     */
29
    public function jsonSerialize()
30
    {
31
        $data = parent::jsonSerialize();
32
        $data['allDay'] = true;
33
34
        return $data;
35
    }
36
}
37