NullHeartbeat   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
c 0
b 0
f 0
lcom 0
cbo 0
dl 0
loc 32
ccs 8
cts 8
cp 1
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A serverBeat() 0 3 1
A clientBeat() 0 3 1
A shouldSendHeartbeat() 0 4 1
A isServerHeartbeatMissing() 0 4 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