Passed
Push — master ( b3aacd...8ef4b6 )
by Joel
03:15
created

Response::getLocation()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace RedirectionIO\Client\Sdk\HttpMessage;
4
5
class Response
6
{
7
    private $statusCode;
8
    private $ruleId;
9
    private $location;
10
11
    /**
12
     * @param int    $statusCode
13
     * @param string $ruleId
14
     * @param string $location
15
     */
16
    public function __construct($statusCode = 200, $ruleId = null, $location = null)
17
    {
18
        $this->statusCode = $statusCode;
19
        $this->ruleId = $ruleId;
20
        $this->location = $location;
21
    }
22
23
    public function getStatusCode()
24
    {
25
        return $this->statusCode;
26
    }
27
28
    public function getRuleId()
29
    {
30
        return $this->ruleId;
31
    }
32
33
    public function getLocation()
34
    {
35
        return $this->location;
36
    }
37
}
38