InnerCircle::setRadiusFactor()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 5
ccs 0
cts 3
cp 0
crap 2
rs 10
1
<?php
2
3
namespace CMEN\GoogleChartsBundle\GoogleCharts\Options\Diff\DiffPieChart;
4
5
/**
6
 * @author Christophe Meneses
7
 */
8
class InnerCircle
9
{
10
    /**
11
     * Relative size of the circles.
12
     *
13
     * @var float
14
     */
15
    protected $radiusFactor;
16
17
    /**
18
     * Border between the two circles.
19
     *
20
     * @var float
21
     */
22
    protected $borderFactor;
23
24
    /**
25
     * @return $this
26
     */
27
    public function setRadiusFactor(float $radiusFactor)
28
    {
29
        $this->radiusFactor = $radiusFactor;
30
31
        return $this;
32
    }
33
34
    /**
35
     * @return $this
36
     */
37
    public function setBorderFactor(float $borderFactor)
38
    {
39
        $this->borderFactor = $borderFactor;
40
41
        return $this;
42
    }
43
}
44