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

PdfBody::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 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