Server::setPingHostname()   A
last analyzed

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 1
1
<?php
2
namespace Monitor\Model;
3
4
/**
5
 * @Entity @Table(name="servers")
6
 **/
7
class Server
8
{
9
    /**
10
     * @Id @Column(type="integer") @GeneratedValue
11
     **/
12
    private $id;
13
    /**
14
     * @Column(type="string")
15
     **/
16
    private $name;
17
    /**
18
     * @Column(type="string")
19
     **/
20
    private $url_path;
21
    /**
22
     * @Column(type="string")
23
     **/
24
    private $ping_hostname;
25
26
    public function getId()
27
    {
28
        return $this->id;
29
    }
30
31
    public function getName()
32
    {
33
        return $this->name;
34
    }
35
36
    public function getUrlPath()
37
    {
38
        return $this->url_path;
39
    }
40
41
    public function getPingHostname()
42
    {
43
        return $this->ping_hostname;
44
    }
45
46
    public function setName($name)
47
    {
48
        $this->name = $name;
49
    }
50
51
    public function setUrlPath($urlPath)
52
    {
53
        $this->url_path = $urlPath;
54
    }
55
56
    public function setPingHostname($pingHostname)
57
    {
58
        $this->ping_hostname = $pingHostname;
59
    }
60
}
61