Segment::getId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

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
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Acquia\LiftClient\Entity;
4
5
class Segment extends Entity
6
{
7
    /**
8
     * @param array $array
9
     */
10 15
    public function __construct(array $array = [])
11
    {
12 15
        parent::__construct($array);
13 15
    }
14
15
    /**
16
     * Gets the 'id' parameter.
17
     *
18
     * @return string The Identifier of the Segment
19
     */
20 15
    public function getId()
21
    {
22 15
        return $this->getEntityValue('id', '');
23
    }
24
25
    /**
26
     * Gets the 'name' parameter.
27
     *
28
     * @return string
29
     */
30 15
    public function getName()
31
    {
32 15
        return $this->getEntityValue('name', '');
33
    }
34
35
    /**
36
     * Gets the 'description' parameter.
37
     *
38
     * @return string The Description of the Goal
39
     */
40 15
    public function getDescription()
41
    {
42 15
        return $this->getEntityValue('description', '');
43
    }
44
}
45