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.

Padding::setRight()   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\Layout;
4
5
use Halfpastfour\PHPChartJS\ArraySerializableInterface;
6
use Halfpastfour\PHPChartJS\Delegate\ArraySerializable;
7
use JsonSerializable;
8
9
/**
10
 * Class Padding
11
 * @package Halfpastfour\PHPChartJS\Options\Layout
12
 */
13
class Padding implements ArraySerializableInterface, JsonSerializable
14
{
15
    use ArraySerializable;
16
17
    /**
18
     * @var int
19
     */
20
    private $bottom;
21
22
    /**
23
     * @var int
24
     */
25
    private $left;
26
27
    /**
28
     * @var int
29
     */
30
    private $right;
31
32
    /**
33
     * @var int
34
     */
35
    private $top;
36
37
    /**
38
     * @return int
39
     */
40
    public function getBottom()
41
    {
42
        return $this->bottom;
43
    }
44
45
    /**
46
     * @param int $bottom
47
     *
48
     * @return $this
49
     */
50
    public function setBottom($bottom)
51
    {
52
        $this->bottom = intval($bottom);
53
54
        return $this;
55
    }
56
57
    /**
58
     * @return int
59
     */
60
    public function getLeft()
61
    {
62
        return $this->left;
63
    }
64
65
    /**
66
     * @param int $left
67
     *
68
     * @return $this
69
     */
70
    public function setLeft($left)
71
    {
72
        $this->left = intval($left);
73
74
        return $this;
75
    }
76
77
    /**
78
     * @return int
79
     */
80
    public function getRight()
81
    {
82
        return $this->right;
83
    }
84
85
    /**
86
     * @param int $right
87
     *
88
     * @return $this
89
     */
90
    public function setRight($right)
91
    {
92
        $this->right = intval($right);
93
94
        return $this;
95
    }
96
97
    /**
98
     * @return int
99
     */
100
    public function getTop()
101
    {
102
        return $this->top;
103
    }
104
105
    /**
106
     * @param int $top
107
     *
108
     * @return $this
109
     */
110
    public function setTop($top)
111
    {
112
        $this->top = intval($top);
113
114
        return $this;
115
    }
116
117
    /**
118
     * @return array
119
     */
120
    public function jsonSerialize()
121
    {
122
        return $this->getArrayCopy();
123
    }
124
}
125