Total Complexity | 8 |
Total Lines | 87 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class PieOptions extends Options |
||
13 | { |
||
14 | /** |
||
15 | * @var int |
||
16 | */ |
||
17 | protected $cutoutPercentage; |
||
18 | |||
19 | /** |
||
20 | * @var float |
||
21 | */ |
||
22 | protected $rotation; |
||
23 | |||
24 | /** |
||
25 | * @var float |
||
26 | */ |
||
27 | protected $circumference; |
||
28 | |||
29 | /** |
||
30 | * @return Animation |
||
31 | */ |
||
32 | public function getAnimation() |
||
33 | { |
||
34 | if (is_null($this->animation)) { |
||
35 | $this->animation = new PieAnimation(); |
||
36 | } |
||
37 | |||
38 | return $this->animation; |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * @return int |
||
43 | */ |
||
44 | public function getCutoutPercentage() |
||
45 | { |
||
46 | return $this->cutoutPercentage; |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * @param int $cutoutPercentage |
||
51 | * |
||
52 | * @return $this |
||
53 | */ |
||
54 | public function setCutoutPercentage($cutoutPercentage) |
||
55 | { |
||
56 | $this->cutoutPercentage = $cutoutPercentage; |
||
57 | |||
58 | return $this; |
||
59 | } |
||
60 | |||
61 | /** |
||
62 | * @return float |
||
63 | */ |
||
64 | public function getRotation() |
||
67 | } |
||
68 | |||
69 | /** |
||
70 | * @param float $rotation |
||
71 | * |
||
72 | * @return $this |
||
73 | */ |
||
74 | public function setRotation($rotation) |
||
79 | } |
||
80 | |||
81 | /** |
||
82 | * @return float |
||
83 | */ |
||
84 | public function getCircumference() |
||
85 | { |
||
86 | return $this->circumference; |
||
87 | } |
||
88 | |||
89 | /** |
||
90 | * @param float $circumference |
||
91 | * |
||
92 | * @return $this |
||
93 | */ |
||
94 | public function setCircumference($circumference) |
||
99 | } |
||
100 | } |
||
101 |