| Total Complexity | 5 |
| Total Lines | 38 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 9 | class ScrollToIndexCommand extends AbstractStandardCommand implements \JsonSerializable |
||
| 10 | { |
||
| 11 | public const TYPE = 'ScrollToIndex'; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @param string|null $componentId ID of the component to scroll |
||
| 15 | * @param int|null $index Index to scroll to |
||
| 16 | * @param ScrollAlign $align Alignment when scrolled to index |
||
| 17 | * @param int|null $targetDuration Duration of the scroll animation in milliseconds |
||
| 18 | */ |
||
| 19 | 7 | public function __construct( |
|
| 26 | } |
||
| 27 | |||
| 28 | 5 | public function jsonSerialize(): array |
|
| 49 |