Palette   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 48
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 80%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 48
ccs 8
cts 10
cp 0.8
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A setName() 0 5 1
A getName() 0 4 1
A setColors() 0 5 1
A getColors() 0 4 1
1
<?php
2
3
namespace SixtyNine\Cloud\Model;
4
5
class Palette
6
{
7
    /**
8
     * @var string
9
     */
10
    protected $name;
11
12
    /**
13
     * @var array
14
     */
15
    protected $colors;
16
17
    /**
18
     * @param string $name
19
     * @return $this
20
     */
21 3
    public function setName($name)
22
    {
23 3
        $this->name = $name;
24 3
        return $this;
25
    }
26
27
    /**
28
     * @return string
29
     */
30
    public function getName()
31
    {
32
        return $this->name;
33
    }
34
35
    /**
36
     * @param array $colors
37
     * @return $this
38
     */
39 3
    public function setColors($colors)
40
    {
41 3
        $this->colors = $colors;
42 3
        return $this;
43
    }
44
45
    /**
46
     * @return array
47
     */
48 3
    public function getColors()
49
    {
50 3
        return $this->colors;
51
    }
52
}
53
54