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

Response   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 31
rs 10
c 0
b 0
f 0
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getRuleId() 0 3 1
A getStatusCode() 0 3 1
A getLocation() 0 3 1
A __construct() 0 5 1
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