Segment   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
lcom 1
cbo 1
dl 0
loc 40
ccs 9
cts 9
cp 1
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 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