| Total Complexity | 4 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 9 | class ScrollToComponentCommand extends AbstractStandardCommand implements \JsonSerializable |
||
| 10 | { |
||
| 11 | public const TYPE = 'ScrollToComponent'; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @param string|null $componentId ID of the component to scroll to |
||
| 15 | * @param ScrollAlign $align Alignment of the component when scrolled to |
||
| 16 | * @param int|null $targetDuration Duration of the scroll animation in milliseconds |
||
| 17 | */ |
||
| 18 | 6 | public function __construct( |
|
| 24 | } |
||
| 25 | |||
| 26 | 4 | public function jsonSerialize(): array |
|
| 43 |