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

Result   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 63
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 3
Bugs 0 Features 1
Metric Value
wmc 5
c 3
b 0
f 1
lcom 0
cbo 0
dl 0
loc 63
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
A getName() 0 4 1
A getStatusCode() 0 4 1
A getExpectedStatus() 0 4 1
A getReponseTime() 0 4 1
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