SegmentInfo::getName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
3
/**
4
 * This file is part of the Mediapart Selligent Client API
5
 *
6
 * CC BY-NC-SA <https://github.com/mediapart/selligent>
7
 *
8
 * For the full license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Mediapart\Selligent;
13
14
/**
15
 *
16
 */
17
class SegmentInfo
18
{
19
    /**
20
     * @var int identifier
21
     */
22
    protected $ID;
23
24
    /**
25
     * @var string name
26
     */
27
    protected $Name;
28
29
    /**
30
     * @var string type
31
     */
32
    protected $Type;
33
34
    /**
35
     *
36
     * @var strinf description
37
     */
38
    protected $Description;
39
40
    /**
41
     * Gets the segment's identifier
42
     *
43
     * @return int identifier
44
     */
45 1
    public function getId()
46
    {
47 1
        return $this->ID;
48
    }
49
50
    /**
51
     * Gets the segment's name
52
     *
53
     * @return string name
54
     */
55 1
    public function getName()
56
    {
57 1
        return $this->Name;
58
    }
59
60
    /**
61
     * Gets the segment's type
62
     *
63
     * @return string type
64
     */
65 1
    public function getType()
66
    {
67 1
        return $this->Type;
68
    }
69
70
    /**
71
     * Gets the segment's description
72
     *
73
     * @return string description
74
     */
75 1
    public function getDescription()
76
    {
77 1
        return $this->Description;
78
    }
79
}
80