JobEvent   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 53
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 1
dl 0
loc 53
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getJob() 0 4 1
A setExecutedStatus() 0 5 1
A isExecutedStatus() 0 4 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: polidog
5
 * Date: 2016/03/13
6
 */
7
8
namespace Tavii\SQSJobQueueBundle\Event;
9
10
11
use Symfony\Component\EventDispatcher\Event;
12
use Tavii\SQSJobQueue\Job\JobInterface;
13
14
class JobEvent extends Event
15
{
16
    /**
17
     * @var JobInterface
18
     */
19
    private $job;
20
21
    /**
22
     * @var boolean
23
     */
24
    private $executedStatus;
25
26
    /**
27
     * JobEvent constructor.
28
     * @param JobInterface $job
29
     * @param bool $executedStatus
0 ignored issues
show
Bug introduced by
There is no parameter named $executedStatus. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

Consider the following example. The parameter $italy is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $island
 * @param array $italy
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was removed, but the annotation was not.

Loading history...
30
     */
31
    public function __construct(JobInterface $job)
32
    {
33
        $this->job = $job;
34
        $this->executedStatus = false;
35
    }
36
37
    /**
38
     * @return JobInterface
39
     */
40
    public function getJob()
41
    {
42
        return $this->job;
43
    }
44
45
    /**
46
     * @param boolean $executedStatus
47
     * @return $this
48
     */
49
    public function setExecutedStatus($executedStatus)
50
    {
51
        $this->executedStatus = $executedStatus;
52
        return $this;
53
    }
54
55
56
    /**
57
     * @return boolean
58
     */
59
    public function isExecutedStatus()
60
    {
61
        return $this->executedStatus;
62
    }
63
64
65
66
}