Completed
Push — master ( f6b491...95083d )
by Sebastian
02:00
created

PdfBody   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

3 Methods

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