Completed
Push — master ( 7b6a9e...621ea2 )
by Nick
15:23
created

Segment::getId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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