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

DeleteQueueEvent   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getMessage() 0 4 1
A isDeleted() 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\Message\MessageInterface;
13
14
class DeleteQueueEvent extends Event
15
{
16
    /**
17
     * @var MessageInterface
18
     */
19
    private $message;
20
21
    /**
22
     * @var boolean
23
     */
24
    private $deleted;
25
26
    /**
27
     * DeleteQueueEvent constructor.
28
     * @param MessageInterface $message
29
     * @param bool $deleted
30
     */
31
    public function __construct(MessageInterface $message, $deleted)
32
    {
33
        $this->message = $message;
34
        $this->deleted = $deleted;
35
    }
36
37
    /**
38
     * @return MessageInterface
39
     */
40
    public function getMessage()
41
    {
42
        return $this->message;
43
    }
44
45
    /**
46
     * @return boolean
47
     */
48
    public function isDeleted()
49
    {
50
        return $this->deleted;
51
    }
52
53
54
55
}