GraphicalType::getId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 *
4
 */
5
6
/**
7
 * GraphicalType class
8
 *
9
 * @author Laurent De Coninck <[email protected]>
10
 */
11
class GraphicalType
12
{
13
14
    /**
15
     * @var int
16
     */
17
    private $id;
18
19
    /**
20
     * @var string
21
     */
22
    private $title;
23
24
    /**
25
     * GraphicalType constructor.
26
     *
27
     * @param int $id
28
     * @param string          $title
29
     */
30
    public function __construct($id, $title)
31
    {
32
        $this->id = $id;
33
        $this->title = $title;
34
    }
35
36
    /**
37
     * @return int
38
     */
39
    public function getId()
40
    {
41
        return $this->id;
42
    }
43
44
    /**
45
     * @return string
46
     */
47
    public function getTitle()
48
    {
49
        return $this->title;
50
    }
51
52
}