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   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 1
cbo 1
dl 0
loc 31
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getDaysOfWeek() 0 12 1
A jsonSerialize() 0 7 1
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