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.

Animation   A
last analyzed

Complexity

Total Complexity 9

Size/Duplication

Total Lines 110
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 19
c 2
b 0
f 0
dl 0
loc 110
rs 10
wmc 9

9 Methods

Rating   Name   Duplication   Size   Complexity  
A setOnComplete() 0 5 1
A getOnComplete() 0 3 1
A jsonSerialize() 0 3 1
A setDuration() 0 5 1
A getEasing() 0 3 1
A getOnProgress() 0 3 1
A setOnProgress() 0 5 1
A setEasing() 0 5 1
A getDuration() 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 JsonSerializable;
8
use Laminas\Json\Expr;
9
10
/**
11
 * Class Animation
12
 *
13
 * @package Halfpastfour\PHPChartJS\Options
14
 */
15
class Animation implements ArraySerializableInterface, JsonSerializable
16
{
17
    use ArraySerializable;
18
19
    /**
20
     * @var int
21
     */
22
    private $duration;
23
24
    /**
25
     * @var string
26
     */
27
    private $easing;
28
29
    /**
30
     * @var Expr
31
     */
32
    private $onProgress;
33
34
    /**
35
     * @var Expr
36
     */
37
    private $onComplete;
38
39
    /**
40
     * @return int
41
     */
42
    public function getDuration()
43
    {
44
        return $this->duration;
45
    }
46
47
    /**
48
     * @param int $duration
49
     *
50
     * @return $this
51
     */
52
    public function setDuration($duration)
53
    {
54
        $this->duration = $duration;
55
56
        return $this;
57
    }
58
59
    /**
60
     * @return string
61
     */
62
    public function getEasing()
63
    {
64
        return $this->easing;
65
    }
66
67
    /**
68
     * @param string $easing
69
     *
70
     * @return $this
71
     */
72
    public function setEasing($easing)
73
    {
74
        $this->easing = $easing;
75
76
        return $this;
77
    }
78
79
    /**
80
     * @return Expr
81
     */
82
    public function getOnProgress()
83
    {
84
        return $this->onProgress;
85
    }
86
87
    /**
88
     * @param string $onProgress
89
     *
90
     * @return $this
91
     */
92
    public function setOnProgress($onProgress)
93
    {
94
        $this->onProgress = new Expr(strval($onProgress));
95
96
        return $this;
97
    }
98
99
    /**
100
     * @return Expr
101
     */
102
    public function getOnComplete()
103
    {
104
        return $this->onComplete;
105
    }
106
107
    /**
108
     * @param string $onComplete
109
     *
110
     * @return $this
111
     */
112
    public function setOnComplete($onComplete)
113
    {
114
        $this->onComplete = new Expr(strval($onComplete));
115
116
        return $this;
117
    }
118
119
    /**
120
     * @return array
121
     */
122
    public function jsonSerialize()
123
    {
124
        return $this->getArrayCopy();
125
    }
126
}
127