Completed
Push — master ( f4df47...244d2b )
by Ryota
16:21 queued 14:06
created

JobEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 3
nc 1
nop 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
}