Title   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 66
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 2 Features 0
Metric Value
wmc 5
c 2
b 2
f 0
lcom 1
cbo 0
dl 0
loc 66
ccs 15
cts 15
cp 1
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getHighlight() 0 4 1
A setHighlight() 0 6 1
A getText() 0 4 1
A setText() 0 6 1
A toArray() 0 8 1
1
<?php
2
3
namespace CarlosIO\Geckoboard\Data\ItemList;
4
5
class Title
6
{
7
    /**
8
     * @var string
9
     */
10
    protected $text;
11
12
    /**
13
     * @var bool
14
     */
15
    protected $highlight;
16
17
    /**
18
     * @return mixed
19
     */
20 3
    public function getHighlight()
21
    {
22 3
        return $this->highlight;
23
    }
24
25
    /**
26
     * @param mixed $highlight
27
     *
28
     * @return $this
29
     */
30 3
    public function setHighlight($highlight)
31
    {
32 3
        $this->highlight = $highlight;
33
34 3
        return $this;
35
    }
36
37
    /**
38
     * @return string
39
     */
40 3
    public function getText()
41
    {
42 3
        return $this->text;
43
    }
44
45
    /**
46
     * @param string $text
47
     *
48
     * @return $this
49
     */
50 3
    public function setText($text)
51
    {
52 3
        $this->text = $text;
53
54 3
        return $this;
55
    }
56
57
    /**
58
     * Returns an array representation of this object.
59
     *
60
     * @return array
61
     */
62 3
    public function toArray()
63
    {
64 3
        $result = array();
65 3
        $result['text'] = $this->getText();
66 3
        $result['highlight'] = $this->getHighlight();
67
68 3
        return $result;
69
    }
70
}
71