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.

Scales   A
last analyzed

Complexity

Total Complexity 7

Size/Duplication

Total Lines 60
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 13
c 2
b 0
f 0
dl 0
loc 60
rs 10
wmc 7

5 Methods

Rating   Name   Duplication   Size   Complexity  
A jsonSerialize() 0 3 1
A getXAxes() 0 7 2
A createXAxis() 0 3 1
A getYAxes() 0 7 2
A createYAxis() 0 3 1
1
<?php
2
3
namespace Halfpastfour\PHPChartJS\Options;
4
5
use Halfpastfour\PHPChartJS\ArraySerializableInterface;
6
use Halfpastfour\PHPChartJS\Delegate\ArraySerializable;
7
use Halfpastfour\PHPChartJS\Options\Scales\XAxis;
8
use Halfpastfour\PHPChartJS\Options\Scales\XAxisCollection;
9
use Halfpastfour\PHPChartJS\Options\Scales\YAxis;
10
use Halfpastfour\PHPChartJS\Options\Scales\YAxisCollection;
11
use JsonSerializable;
12
13
/**
14
 * Class Scales
15
 * @package Halfpastfour\PHPChartJS\Options
16
 */
17
class Scales implements ArraySerializableInterface, JsonSerializable
18
{
19
    use ArraySerializable;
20
21
    /**
22
     * @var XAxisCollection
23
     */
24
    private $xAxes;
25
26
    /**
27
     * @var YAxisCollection
28
     */
29
    private $yAxes;
30
31
    /**
32
     * @return XAxis
33
     */
34
    public function createXAxis()
35
    {
36
        return new XAxis();
37
    }
38
39
    /**
40
     * @return YAxis
41
     */
42
    public function createYAxis()
43
    {
44
        return new YAxis();
45
    }
46
47
    /**
48
     * @return XAxisCollection
49
     */
50
    public function getXAxes()
51
    {
52
        if (is_null($this->xAxes)) {
53
            $this->xAxes = new XAxisCollection();
54
        }
55
56
        return $this->xAxes;
57
    }
58
59
    /**
60
     * @return YAxisCollection
61
     */
62
    public function getYAxes()
63
    {
64
        if (is_null($this->yAxes)) {
65
            $this->yAxes = new YAxisCollection();
66
        }
67
68
        return $this->yAxes;
69
    }
70
71
    /**
72
     * @return array
73
     */
74
    public function jsonSerialize()
75
    {
76
        return $this->getArrayCopy();
77
    }
78
}
79