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

Response   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getContentType() 0 4 1
A getContent() 0 4 1
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