Palette::getName()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
ccs 0
cts 2
cp 0
cc 1
nc 1
nop 0
crap 2
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