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

Segment   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 42
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 4
lcom 1
cbo 1
dl 0
loc 42
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getId() 0 4 1
A getName() 0 4 1
A getDescription() 0 4 1
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