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.

DummyBridge   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 50
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 50
ccs 0
cts 14
cp 0
rs 10
c 0
b 0
f 0

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 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
use Chapi\Entity\JobEntityInterface;
12
use Psr\Log\LoggerInterface;
13
14
class DummyBridge implements BridgeInterface
15
{
16
17
    /** @var LoggerInterface  */
18
    private $logger;
19
20
    public function __construct(
21
        LoggerInterface $logger
22
    ) {
23
        $this->logger = $logger;
24
    }
25
26
    /**
27
     * @return JobEntityInterface[]
28
     */
29
    public function getJobs()
30
    {
31
        return [];
32
    }
33
34
    /**
35
     * @param JobEntityInterface $jobEntity
36
     * @return bool
37
     */
38
    public function addJob(JobEntityInterface $jobEntity)
39
    {
40
        $this->logger->warning('Adding a job cannot be done. Required parameters missing or not configured properly in .chapiconfig');
41
        return false;
42
    }
43
44
    /**
45
     * @param JobEntityInterface $jobEntity
46
     * @return bool
47
     */
48
    public function updateJob(JobEntityInterface $jobEntity)
49
    {
50
        $this->logger->warning('Updating job cannot be done. Required parameters missing or not configured properly in .chapiconfig');
51
        return false;
52
    }
53
54
    /**
55
     * @param JobEntityInterface $jobEntity
56
     * @return bool
57
     */
58
    public function removeJob(JobEntityInterface $jobEntity)
59
    {
60
        $this->logger->warning('Removing job cannot be done. Required parameters missing or not configured properly in .chapiconfig');
61
        return false;
62
    }
63
}
64