Completed
Push — master ( 4f2fad...dd1cd3 )
by Guillaume
07:10
created

UrlInfo::getUrl()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %
Metric Value
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
14
    /**
15
     * Constructor.
16
     * @param string  $name
17
     * @param string  $url
18
     * @param integer $timeout
19
     */
20
    public function __construct($name, $url, $timeout)
21
    {
22
        $this->name = $name;
23
        $this->url = $url;
24
        $this->timeout = $timeout;
25
    }
26
27
    /**
28
     * getName.
29
     * @return string
30
     */
31
    public function getName()
32
    {
33
        return $this->name;
34
    }
35
36
    /**
37
     * getUrl.
38
     * @return string
39
     */
40
    public function getUrl()
41
    {
42
        return $this->url;
43
    }
44
45
    /**
46
     * getTimeOut.
47
     * @return integer
48
     */
49
    public function getTimeOut()
50
    {
51
        return $this->timeout;
52
    }
53
}
54