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 ( a3c5fc...13d483 )
by Dragos
11:38
created

Day::jsonSerialize()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 7
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
1
<?php
2
3
namespace Speicher210\BusinessHours\Day;
4
5
/**
6
 * Represents a standard business day.
7
 */
8
class Day extends AbstractDay
9
{
10
    /**
11
     * Get the days of week.
12
     *
13
     * @return integer[]
14
     */
15
    public static function getDaysOfWeek()
16
    {
17
        return array(
18
            self::WEEK_DAY_MONDAY,
19
            self::WEEK_DAY_TUESDAY,
20
            self::WEEK_DAY_WEDNESDAY,
21
            self::WEEK_DAY_THURSDAY,
22
            self::WEEK_DAY_FRIDAY,
23
            self::WEEK_DAY_SATURDAY,
24
            self::WEEK_DAY_SUNDAY,
25
        );
26
    }
27
28
    /**
29
     * {@inheritdoc}
30
     */
31
    public function jsonSerialize()
32
    {
33
        return array(
34
            'dayOfWeek' => $this->dayOfWeek,
35
            'openingIntervals' => $this->openingHoursIntervals,
36
        );
37
    }
38
}
39