SentQueueEvent   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 44
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A isSent() 0 4 1
A getJob() 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 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
}