Response::getRuleId()   A
last analyzed

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
    private $matchOnResponseStatus;
11
12
    /**
13
     * @param int    $statusCode
14
     * @param string $ruleId
15
     * @param string $location
16
     * @param int    $matchOnResponseStatus
17
     */
18
    public function __construct($statusCode = 200, $ruleId = null, $location = null, $matchOnResponseStatus = 0)
19
    {
20
        $this->statusCode = $statusCode;
21
        $this->ruleId = $ruleId;
22
        $this->location = $location;
23
        $this->matchOnResponseStatus = $matchOnResponseStatus;
24
    }
25
26
    public function getStatusCode()
27
    {
28
        return $this->statusCode;
29
    }
30
31
    public function getRuleId()
32
    {
33
        return $this->ruleId;
34
    }
35
36
    public function getLocation()
37
    {
38
        return $this->location;
39
    }
40
41
    public function getMatchOnResponseStatus()
42
    {
43
        return $this->matchOnResponseStatus;
44
    }
45
}
46