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
Pull Request — master (#68)
by Bidesh
02:54
created

DummyBridge   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 51
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 5
lcom 0
cbo 1
dl 0
loc 51
ccs 0
cts 14
cp 0
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getJobs() 0 4 1
A addJob() 0 5 1
A updateJob() 0 5 1
A removeJob() 0 5 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: bthapaliya
5
 * Date: 14/02/17
6
 * Time: 14:24
7
 */
8
9
namespace Chapi\Service\JobRepository;
10
11
12
use Chapi\Entity\JobEntityInterface;
13
use Psr\Log\LoggerInterface;
14
15
class DummyBridge implements BridgeInterface
16
{
17
18
    /** @var LoggerInterface  */
19
    private $oLogger;
20
21
    public function __construct(
22
        LoggerInterface $oLogger
23
    )
24
    {
25
        $this->oLogger = $oLogger;
26
    }
27
28
    /**
29
     * @return JobEntityInterface[]
30
     */
31
    public function getJobs()
32
    {
33
        return [];
34
    }
35
36
    /**
37
     * @param JobEntityInterface $oJobEntity
38
     * @return bool
39
     */
40
    public function addJob(JobEntityInterface $oJobEntity)
41
    {
42
        $this->oLogger->warning('Adding a job cannot be done. Required parameters missing or not configured properly in .chapiconfig');
43
        return true;
44
    }
45
46
    /**
47
     * @param JobEntityInterface $oJobEntity
48
     * @return bool
49
     */
50
    public function updateJob(JobEntityInterface $oJobEntity)
51
    {
52
        $this->oLogger->warning('Updating job cannot be done. Required parameters missing or not configured properly in .chapiconfig');
53
        return true;
54
    }
55
56
    /**
57
     * @param JobEntityInterface $oJobEntity
58
     * @return bool
59
     */
60
    public function removeJob(JobEntityInterface $oJobEntity)
61
    {
62
        $this->oLogger->warning('Removing job cannot be done. Required parameters missing or not configured properly in .chapiconfig');
63
        return true;
64
    }
65
}
66