GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

PieAnimation   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 50
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 9
c 2
b 0
f 0
dl 0
loc 50
rs 10
wmc 4

4 Methods

Rating   Name   Duplication   Size   Complexity  
A isAnimateRotate() 0 3 1
A setAnimateScale() 0 5 1
A isAnimateScale() 0 3 1
A setAnimateRotate() 0 5 1
1
<?php
2
3
namespace Halfpastfour\PHPChartJS\Options\Animation;
4
5
use Halfpastfour\PHPChartJS\Options\Animation;
6
7
/**
8
 * Class PieAnimation
9
 * @package Halfpastfour\PHPChartJS\Options\Animation
10
 */
11
class PieAnimation extends Animation
12
{
13
    /**
14
     * @var bool
15
     */
16
    private $animateRotate;
17
18
    /**
19
     * @var bool
20
     */
21
    private $animateScale;
22
23
    /**
24
     * @return bool
25
     */
26
    public function isAnimateRotate()
27
    {
28
        return $this->animateRotate;
29
    }
30
31
    /**
32
     * @param bool $animateRotate
33
     *
34
     * @return PieAnimation
35
     */
36
    public function setAnimateRotate($animateRotate)
37
    {
38
        $this->animateRotate = $animateRotate;
39
40
        return $this;
41
    }
42
43
    /**
44
     * @return bool
45
     */
46
    public function isAnimateScale()
47
    {
48
        return $this->animateScale;
49
    }
50
51
    /**
52
     * @param bool $animateScale
53
     *
54
     * @return PieAnimation
55
     */
56
    public function setAnimateScale($animateScale)
57
    {
58
        $this->animateScale = $animateScale;
59
60
        return $this;
61
    }
62
}
63