Completed
Push — master ( 58620c...f23d9f )
by Vitaliy
02:20
created

Response::getStatusCode()   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 0
1
<?php
2
3
/*
4
 * This file is part of the AppleApnPush package
5
 *
6
 * (c) Vitaliy Zhuk <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code
10
 */
11
12
namespace Apple\ApnPush\Protocol\Http;
13
14
/**
15
 * Object for presentation http response
16
 */
17
class Response
18
{
19
    /**
20
     * @var int
21
     */
22
    private $statusCode;
23
24
    /**
25
     * @var string
26
     */
27
    private $content;
28
29
    /**
30
     * Constructor.
31
     *
32
     * @param int    $statusCode
33
     * @param string $content
34
     */
35
    public function __construct(int $statusCode, string $content)
36
    {
37
        $this->statusCode = $statusCode;
38
        $this->content = $content;
39
    }
40
41
    /**
42
     * Get status code
43
     *
44
     * @return int
45
     */
46
    public function getStatusCode() : int
47
    {
48
        return $this->statusCode;
49
    }
50
51
    /**
52
     * Get content
53
     *
54
     * @return string
55
     */
56
    public function getContent() : string
57
    {
58
        return $this->content;
59
    }
60
}
61