QueueMessage::getId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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