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

SentQueueEvent::__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 2
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 SentQueueEvent extends Event
15
{
16
    /**
17
     * @var JobInterface
18
     */
19
    private $job;
20
21
22
    /**
23
     * @var boolean
24
     */
25
    private $sent;
26
27
    /**
28
     * SentQueueEvent constructor.
29
     * @param JobInterface $job
30
     * @param bool $sent
31
     */
32
    public function __construct(JobInterface $job, $sent)
33
    {
34
        $this->job = $job;
35
        $this->sent = $sent;
36
    }
37
38
39
    /**
40
     * @return boolean
41
     */
42
    public function isSent()
43
    {
44
        return $this->sent;
45
    }
46
47
    /**
48
     * @return JobInterface
49
     */
50
    public function getJob()
51
    {
52
        return $this->job;
53
    }
54
55
56
57
}