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

UrlInfo   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 46
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 46
rs 10

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getName() 0 4 1
A getUrl() 0 4 1
A getTimeOut() 0 4 1
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