Ping   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 0
dl 0
loc 29
ccs 0
cts 12
cp 0
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getData() 0 4 1
A getDelayedTime() 0 4 1
1
<?php
2
3
namespace Happyr\SimpleBusBundle\Message\Command;
4
5
use JMS\Serializer\Annotation as Serializer;
6
use Happyr\SimpleBusBundle\Message\DelayedMessage;
7
8
class Ping implements DelayedMessage
9
{
10
    /**
11
     * @var mixed
12
     * @Serializer\Type("string")
13
     */
14
    private $data;
15
16
    /**
17
     * @param $data
18
     */
19
    public function __construct($data)
20
    {
21
        $this->data = $data;
22
    }
23
24
    /**
25
     * @return mixed
26
     */
27
    public function getData()
28
    {
29
        return $this->data;
30
    }
31
32
    public function getDelayedTime()
33
    {
34
        return 2000;
35
    }
36
}
37