Completed
Push — master ( e6719d...13ae3c )
by John
01:53
created

ParsedHeaders::getContentType()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 3
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
namespace LunixREST\Request\HeaderParser;
3
4
class ParsedHeaders {
5
    /**
6
     * @var array
7
     */
8
    private $acceptableMIMETypes;
9
    private $APIKey;
10
    private $contentType;
11
12
    /**
13
     * ParsedHeader constructor.
14
     * @param $contentType
15
     * @param array $acceptableMIMETypes
16
     * @param $APIKey
17
     */
18
    public function __construct($contentType, array $acceptableMIMETypes, $APIKey) {
19
        $this->contentType = $contentType;
20
        $this->acceptableMIMETypes = $acceptableMIMETypes;
21
        $this->APIKey = $APIKey;
22
    }
23
24
    public function getContentType() {
25
        return $this->contentType;
26
    }
27
28
    public function getAcceptableMIMETypes(): array {
29
        return $this->acceptableMIMETypes;
30
    }
31
32
    public function getAPIKey() {
33
        return $this->APIKey;
34
    }
35
}
36