Total Complexity | 5 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
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() |
||
34 | } |
||
35 | |||
36 | public function getLocation() |
||
39 | } |
||
40 | |||
41 | public function getMatchOnResponseStatus() |
||
46 |