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::getYAxes()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 3
nc 2
nop 0
dl 0
loc 7
rs 10
c 0
b 0
f 0
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