ColorGenerator   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 15
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
getNextColor() 0 1 ?
A __construct() 0 4 1
1
<?php
2
3
namespace SixtyNine\Cloud\Color;
4
5
use SixtyNine\Cloud\Model\Palette;
6
7
abstract class ColorGenerator implements ColorGeneratorInterface
8
{
9
    /** @var \SixtyNine\Cloud\Model\Palette */
10
    protected $palette;
11
12
    /**
13
     * @param Palette $palette
14
     */
15 3
    public function __construct(Palette $palette)
16
    {
17 3
        $this->palette = $palette;
18 3
    }
19
20
    abstract public function getNextColor();
21
}
22