Completed
Push — master ( 5d5235...483143 )
by Guillaume
04:19
created

Result::getExpectedStatus()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Hogosha\Monitor\Model;
4
5
/**
6
 * @author Guillaume Cavana <[email protected]>
7
 */
8
class Result
9
{
10
    protected $name;
11
    protected $statusCode;
12
    protected $responseTime;
13
    protected $expectedStatus;
14
15
    /**
16
     * Constructor.
17
     *
18
     * @param string $name
19
     * @param string $statusCode
20
     * @param float  $responseTime
21
     * @param int    $expectedStatus
22
     */
23
    public function __construct($name, $statusCode, $responseTime, $expectedStatus)
24
    {
25
        $this->name = $name;
26
        $this->statusCode = $statusCode;
27
        $this->responseTime = $responseTime;
28
        $this->expectedStatus = $expectedStatus;
29
    }
30
31
    /**
32
     * getName.
33
     *
34
     * @return string
35
     */
36
    public function getName()
37
    {
38
        return $this->name;
39
    }
40
41
    /**
42
     * getStatusCode.
43
     *
44
     * @return int
45
     */
46
    public function getStatusCode()
47
    {
48
        return $this->statusCode;
49
    }
50
51
    /**
52
     * getExpectedStatus.
53
     *
54
     * @return int
55
     */
56
    public function getExpectedStatus()
57
    {
58
        return $this->expectedStatus;
59
    }
60
61
    /**
62
     * getReponseTime.
63
     *
64
     * @return float
65
     */
66
    public function getReponseTime()
67
    {
68
        return $this->responseTime;
69
    }
70
}
71