QueueMessage   A
last analyzed

Complexity

Total Complexity 7

Size/Duplication

Total Lines 80
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 7
c 2
b 0
f 0
lcom 0
cbo 1
dl 0
loc 80
rs 10

7 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A getName() 0 4 1
A setName() 0 4 1
A getBody() 0 4 1
A setBody() 0 4 1
A getReceivedAt() 0 4 1
A setReceivedAt() 0 4 1
1
<?php
2
3
namespace DoS\QueueBundle\Model;
4
5
use DoS\ResourceBundle\Model\TimestampableTrait;
6
7
class QueueMessage implements QueueMessageInterface
8
{
9
    use TimestampableTrait;
10
11
    /**
12
     * @var int
13
     */
14
    protected $id;
15
16
    /**
17
     * @var string
18
     */
19
    protected $name;
20
21
    /**
22
     * @var array
23
     */
24
    protected $body = array();
25
26
    /**
27
     * @var \DateTime
28
     */
29
    protected $receivedAt;
30
31
    /**
32
     * {@inheritdoc}
33
     */
34
    public function getId()
35
    {
36
        return $this->id;
37
    }
38
39
    /**
40
     * @return string
41
     */
42
    public function getName()
43
    {
44
        return $this->name;
45
    }
46
47
    /**
48
     * @param string $name
49
     */
50
    public function setName($name)
51
    {
52
        $this->name = $name;
53
    }
54
55
    /**
56
     * {@inheritdoc}
57
     */
58
    public function getBody()
59
    {
60
        return $this->body;
61
    }
62
63
    /**
64
     * {@inheritdoc}
65
     */
66
    public function setBody(array $body)
67
    {
68
        $this->body = $body;
69
    }
70
71
    /**
72
     * {@inheritdoc}
73
     */
74
    public function getReceivedAt()
75
    {
76
        return $this->receivedAt;
77
    }
78
79
    /**
80
     * {@inheritdoc}
81
     */
82
    public function setReceivedAt(\DateTime $receivedAt)
83
    {
84
        $this->receivedAt = $receivedAt;
85
    }
86
}
87