Total Complexity | 2 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
8 | class Animation |
||
9 | { |
||
10 | /** |
||
11 | * The duration of the animation, in milliseconds. For details, see the animation documentation. |
||
12 | * {@link https://developers.google.com/chart/interactive/docs/animation}. |
||
13 | * |
||
14 | * @var int |
||
15 | */ |
||
16 | protected $duration; |
||
17 | |||
18 | /** |
||
19 | * The easing function applied to the animation. The following options are available : |
||
20 | * 'linear' - Constant speed. |
||
21 | * 'in' - Ease in - Start slow and speed up. |
||
22 | * 'out' - Ease out - Start fast and slow down. |
||
23 | * 'inAndOut' - Ease in and out - Start slow, speed up, then slow down. |
||
24 | * |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $easing; |
||
28 | |||
29 | /** |
||
30 | * @return $this |
||
31 | */ |
||
32 | 2 | public function setDuration(int $duration) |
|
37 | } |
||
38 | |||
39 | /** |
||
40 | * @return $this |
||
41 | */ |
||
42 | 2 | public function setEasing(string $easing) |
|
49 |