Test Failed
Pull Request — master (#9)
by Nicolas
02:36
created

NullBody   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 27
c 0
b 0
f 0
wmc 5
lcom 0
cbo 0
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A format() 0 4 1
A footprint() 0 4 1
A getContentType() 0 4 1
A __toString() 0 4 1
A decode() 0 4 1
1
<?php
2
3
namespace Puzzle\AMQP\Messages\Bodies;
4
5
use Puzzle\AMQP\Messages\Body;
6
use Puzzle\AMQP\Messages\ContentType;
7
8
class NullBody implements Body
9
{
10
    public function format()
11
    {
12
        return null;
13
    }
14
    
15
    public function footprint()
16
    {
17
        return null;
18
    }
19
    
20
    public function getContentType()
21
    {
22
        return ContentType::EMPTY_CONTENT;
23
    }
24
    
25
    public function __toString()
26
    {
27
        return '';
28
    }
29
    
30
    public function decode()
31
    {
32
        return null;
33
    }
34
}