Completed
Pull Request — master (#16)
by Jan
26:20 queued 11:22
created

GetJobsEvent   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 2
Bugs 0 Features 1
Metric Value
wmc 2
c 2
b 0
f 1
lcom 0
cbo 1
dl 0
loc 31
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getQueues() 0 4 1
1
<?php
2
3
namespace Phloppy\Event;
4
5
use Symfony\Component\EventDispatcher\Event;
6
7
class GetJobsEvent extends Event
8
{
9
10
    const ID = 'job.getjob';
11
12
    /**
13
     * @var string[]
14
     */
15
    private $queues;
16
17
18
    /**
19
     * @param string[] $queues
20
     * @param          $count
21
     * @param          $timeout
22
     */
23
    public function __construct(array $queues, $count, $timeout)
0 ignored issues
show
Unused Code introduced by
The parameter $count is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
Unused Code introduced by
The parameter $timeout is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
24
    {
25
        $this->queues = $queues;
26
    }
27
28
29
    /**
30
     * @return string[]
31
     */
32
    public function getQueues()
33
    {
34
        return $this->queues;
35
    }
36
37
}