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.

RegisterFunctionEvent::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
namespace dmank\gearman\event;
3
4
use dmank\gearman\JobCollection;
5
use Symfony\Component\EventDispatcher\Event;
6
7
class RegisterFunctionEvent extends Event
8
{
9
    const EVENT_ON_BEFORE_REGISTER_FUNCTIONS = 'worker.on_before_register_functions';
10
    const EVENT_ON_AFTER_REGISTER_FUNCTIONS = 'worker.on_after_register_functions';
11
12
    private $jobs;
13
14 3
    public function __construct(JobCollection $jobs)
15
    {
16 3
        $this->jobs = $jobs;
17 3
    }
18
19
    public function getJobs()
20
    {
21
        return $this->jobs;
22
    }
23
}
24