Completed
Push — master ( 4d1376...b7e494 )
by Sebastian
03:25
created

RawBody   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 32
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getContent() 0 4 1
A isJson() 0 4 1
1
<?php
2
namespace Kartenmacherei\RestFramework\Request\Body;
3
4
class RawBody extends Body
5
{
6
    /**
7
     * @var string
8
     */
9
    private $content = '';
10
11
    /**
12
     * @param string $content
13
     */
14
    public function __construct(string $content)
15
    {
16
        $this->content = $content;
17
    }
18
19
    /**
20
     * @return string
21
     */
22
    public function getContent(): string
23
    {
24
        return $this->content;
25
    }
26
27
    /**
28
     * @return bool
29
     */
30
    public function isJson(): bool
31
    {
32
        return false;
33
    }
34
35
}
36