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.

Worker::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
dl 0
loc 5
ccs 4
cts 4
cp 1
crap 1
rs 10
c 0
b 0
f 0
nc 1
nop 2
1
<?php
2
3
namespace Scheduler\Worker;
4
5
use Scheduler\JobRunner\JobRunnerInterface;
6
use Scheduler\SchedulerInterface;
7
8
/**
9
 * Class Worker
10
 * @package Scheduler\Worker
11
 * @author Aleh Hutnikau, <[email protected]>
12
 */
13
class Worker extends AbstractWorker
14
{
15
16
    /** @var JobRunnerInterface */
17
    private $jobRunner;
18
19
    /** @var SchedulerInterface */
20
    private $scheduler;
21
22
    /**
23
     * Worker constructor.
24
     * @param JobRunnerInterface $jobRunner
25
     * @param SchedulerInterface $scheduler
26
     */
27 3
    public function __construct(JobRunnerInterface $jobRunner, SchedulerInterface $scheduler)
28
    {
29 3
        $this->jobRunner = $jobRunner;
30 3
        $this->scheduler = $scheduler;
31 3
    }
32
33
    /**
34
     * @return JobRunnerInterface
35
     */
36 1
    protected function getJobRunner()
37
    {
38 1
        return $this->jobRunner;
39
    }
40
41
    /**
42
     * @return SchedulerInterface
43
     */
44 1
    protected function getScheduler()
45
    {
46 1
        return $this->scheduler;
47
    }
48
49
}