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.

PieOptions::setCircumference()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 2
b 0
f 0
nc 1
nop 1
dl 0
loc 5
rs 10
1
<?php
2
3
namespace Halfpastfour\PHPChartJS\Options;
4
5
use Halfpastfour\PHPChartJS\Options;
6
use Halfpastfour\PHPChartJS\Options\Animation\PieAnimation;
7
8
/**
9
 * Class PieOptions
10
 * @package Halfpastfour\PHPChartJS\Options
11
 */
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()
65
    {
66
        return $this->rotation;
67
    }
68
69
    /**
70
     * @param float $rotation
71
     *
72
     * @return $this
73
     */
74
    public function setRotation($rotation)
75
    {
76
        $this->rotation = $rotation;
77
78
        return $this;
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)
95
    {
96
        $this->circumference = $circumference;
97
98
        return $this;
99
    }
100
}
101