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

UrlInfo::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 UrlInfo
9
{
10
    protected $name;
11
    protected $url;
12
    protected $timeout;
13
    protected $expectedStatus;
14
15
    /**
16
     * Constructor.
17
     *
18
     * @param string $name
19
     * @param string $url
20
     * @param int    $timeout
21
     * @param int    $expectedStatus
22
     */
23
    public function __construct($name, $url, $timeout, $expectedStatus)
24
    {
25
        $this->name = $name;
26
        $this->url = $url;
27
        $this->timeout = $timeout;
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
     * getUrl.
43
     *
44
     * @return string
45
     */
46
    public function getUrl()
47
    {
48
        return $this->url;
49
    }
50
51
    /**
52
     * getTimeOut.
53
     *
54
     * @return int
55
     */
56
    public function getTimeOut()
57
    {
58
        return $this->timeout;
59
    }
60
61
    /**
62
     * getTimeOut.
63
     *
64
     * @return int
65
     */
66
    public function getExpectedStatus()
67
    {
68
        return $this->expectedStatus;
69
    }
70
}
71