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.

XAxis::jsonSerialize()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace Halfpastfour\PHPChartJS\Options\Scales;
4
5
use Halfpastfour\PHPChartJS\Options\Scale;
6
7
/**
8
 * Class XAxis
9
 *
10
 * @package Halfpastfour\PHPChartJS\Options\Scales
11
 */
12
class XAxis extends Scale
13
{
14
    /**
15
     * @var float
16
     */
17
    private $categoryPercentage;
18
19
    /**
20
     * @var float
21
     */
22
    private $barPercentage;
23
24
    /**
25
     * @return float
26
     */
27
    public function getCategoryPercentage()
28
    {
29
        return $this->categoryPercentage;
30
    }
31
32
    /**
33
     * @param float $categoryPercentage
34
     *
35
     * @return $this
36
     */
37
    public function setCategoryPercentage($categoryPercentage)
38
    {
39
        $this->categoryPercentage = floatval($categoryPercentage);
40
41
        return $this;
42
    }
43
44
    /**
45
     * @return float
46
     */
47
    public function getBarPercentage()
48
    {
49
        return $this->barPercentage;
50
    }
51
52
    /**
53
     * @param float $barPercentage
54
     *
55
     * @return $this
56
     */
57
    public function setBarPercentage($barPercentage)
58
    {
59
        $this->barPercentage = floatval($barPercentage);
60
61
        return $this;
62
    }
63
64
    /**
65
     * @return array
66
     */
67
    public function jsonSerialize()
68
    {
69
        return $this->getArrayCopy();
70
    }
71
}
72