PingMessage::setMessage()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace SmartboxSkeletonBundle\Entity;
4
5
use Smartbox\CoreBundle\Type\SerializableInterface;
6
use Smartbox\CoreBundle\Type\Entity;
7
use JMS\Serializer\Annotation as JMS;
8
9
/**
10
 * Class PingMessage
11
 * @package SmartboxSkeletonBundle\Entity
12
 */
13
class PingMessage extends Entity implements SerializableInterface
14
{
15
    /**
16
     * @JMS\Type("string")
17
     * @JMS\Expose
18
     * @JMS\Groups({"logs"})
19
     *
20
     * @var string
21
     */
22
    private $message;
23
24
    /**
25
     * @JMS\Type("string")
26
     * @JMS\Expose
27
     * @JMS\Groups({"logs"})
28
     *
29
     * @var string
30
     */
31
    private $timestamp;
32
33
    /**
34
     * @return string
35
     */
36
    public function getMessage()
37
    {
38
        return $this->message;
39
    }
40
41
    /**
42
     * @param string $message
43
     */
44
    public function setMessage($message)
45
    {
46
        $this->message = $message;
47
    }
48
49
    /**
50
     * @return string
51
     */
52
    public function getTimestamp()
53
    {
54
        return $this->timestamp;
55
    }
56
57
    /**
58
     * @param string $timestamp
59
     */
60
    public function setTimestamp($timestamp)
61
    {
62
        $this->timestamp = $timestamp;
63
    }
64
}
65