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.
Test Failed
Pull Request — master (#18)
by Kristjan
04:07
created

InnerShifter   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A shift() 0 4 1
A getInnerShifter() 0 4 1
1
<?php
2
3
namespace COG\ChronoShifter\Shifter;
4
5
/**
6
 * @author Kristjan Siimson <[email protected]>
7
 * @package Shifter\Domain
8
 */
9
class InnerShifter
10
{
11
    /**
12
     * @var Shifter
13
     */
14
    private $innerShifter;
15
16
    /**
17
     * @param Shifter $shifter
18
     */
19
    public function __construct(Shifter $shifter)
20
    {
21
        $this->innerShifter = $shifter;
22
    }
23
24
    /**
25
     * @param string $date
26
     * @return string
27
     */
28
    public function shift($date)
29
    {
30
        return $this->innerShifter->shift($date);
31
    }
32
33
    /**
34
     * @return Shifter
35
     */
36
    public function getInnerShifter()
37
    {
38
        return $this->innerShifter;
39
    }
40
}
41