| 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 | * @param int $duration |
||
| 31 | * |
||
| 32 | * @return $this |
||
| 33 | */ |
||
| 34 | 1 | public function setDuration($duration) |
|
| 40 | |||
| 41 | /** |
||
| 42 | * @param string $easing |
||
| 43 | * |
||
| 44 | * @return $this |
||
| 45 | */ |
||
| 46 | 1 | public function setEasing($easing) |
|
| 52 | } |
||
| 53 |