Total Complexity | 3 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class PieSlice |
||
11 | { |
||
12 | use ColorTrait; |
||
13 | |||
14 | /** |
||
15 | * How far to separate the slice from the rest of the pie, from 0.0 (not at all) to 1.0 (the pie's radius). |
||
16 | * |
||
17 | * @var float |
||
18 | */ |
||
19 | protected $offset; |
||
20 | |||
21 | /** |
||
22 | * Overrides the global pieSliceTextStyle for this slice. |
||
23 | * |
||
24 | * @var PieSliceTextStyle |
||
25 | */ |
||
26 | protected $textStyle; |
||
27 | |||
28 | public function __construct() |
||
29 | { |
||
30 | $this->textStyle = new PieSliceTextStyle(); |
||
31 | } |
||
32 | |||
33 | public function getTextStyle(): PieSliceTextStyle |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * @return $this |
||
40 | */ |
||
41 | public function setOffset(float $offset) |
||
48 |