PingMessage   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 50
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 4
eloc 7
dl 0
loc 50
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setMessage() 0 3 1
A setTimestamp() 0 3 1
A getMessage() 0 3 1
A getTimestamp() 0 3 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