NullHeartbeat::serverBeat()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace ButterAMQP\Heartbeat;
4
5
use ButterAMQP\HeartbeatInterface;
6
7
class NullHeartbeat implements HeartbeatInterface
8
{
9
    /**
10
     * {@inheritdoc}
11
     */
12 23
    public function serverBeat()
13
    {
14 23
    }
15
16
    /**
17
     * {@inheritdoc}
18
     */
19 21
    public function clientBeat()
20
    {
21 21
    }
22
23
    /**
24
     * {@inheritdoc}
25
     */
26 27
    public function shouldSendHeartbeat()
27
    {
28 27
        return false;
29
    }
30
31
    /**
32
     * {@inheritdoc}
33
     */
34 1
    public function isServerHeartbeatMissing()
35
    {
36 1
        return false;
37
    }
38
}
39