Completed
Push — master ( c762b0...684d44 )
by John
02:56
created

Response::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
1
<?php declare(strict_types = 1);
2
/*
3
 * This file is part of the KleijnWeb\ApiDescriptions package.
4
 *
5
 * For the full copyright and license information, please view the LICENSE
6
 * file that was distributed with this source code.
7
 */
8
namespace KleijnWeb\ApiDescriptions\Description\Document\Reader;
9
10
/**
11
 * @author John Kleijn <[email protected]>
12
 */
13
class Response
14
{
15
    /**
16
     * @var string
17
     */
18
    private $contentType;
19
20
    /**
21
     * @var string
22
     */
23
    private $content;
24
25
    /**
26
     * Response constructor.
27
     *
28
     * @param string $contentType
29
     * @param string $content
30
     */
31
    public function __construct(string $contentType, string $content)
32
    {
33
        $this->contentType = $contentType;
34
        $this->content     = $content;
35
    }
36
37
    /**
38
     * @return string
39
     */
40
    public function getContentType(): string
41
    {
42
        return $this->contentType;
43
    }
44
45
    /**
46
     * @return string
47
     */
48
    public function getContent(): string
49
    {
50
        return $this->content;
51
    }
52
}
53