Total Complexity | 9 |
Total Lines | 110 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
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) |
||
117 | } |
||
118 | |||
119 | /** |
||
120 | * @return array |
||
121 | */ |
||
122 | public function jsonSerialize() |
||
125 | } |
||
126 | } |
||
127 |