Service::getName()   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 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
namespace Monitor\Model;
3
4
/**
5
 * @Entity @Table(name="services")
6
 **/
7
class Service
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 $dbcolumns;
21
    /**
22
     * @Column(type="boolean")
23
     **/
24
    private $percentages;
0 ignored issues
show
Unused Code introduced by
The property $percentages is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
25
    /**
26
     * @Column(type="boolean")
27
     **/
28
    private $resize;
29
    /**
30
     * @Column(type="boolean")
31
     **/
32
    private $show_graph;
33
    /**
34
     * @Column(type="boolean")
35
     **/
36
    private $show_numbers;
37
38
    public function getId()
39
    {
40
        return $this->id;
41
    }
42
    
43
    public function getName()
44
    {
45
        return $this->name;
46
    }
47
48
    public function getDBColumns()
49
    {
50
        return $this->dbcolumns;
51
    }
52
53
    public function getResize()
54
    {
55
        return $this->resize;
56
    }
57
58
    public function getShowGraph()
59
    {
60
        return $this->show_graph;
61
    }
62
63
    public function getShowNumbers()
64
    {
65
        return $this->show_numbers;
66
    }
67
}
68