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::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 0
cts 3
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
crap 2
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