| Total Complexity | 4 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 10 | class SpeakItemCommand extends AbstractStandardCommand implements \JsonSerializable |
||
| 11 | { |
||
| 12 | public const TYPE = 'SpeakItem'; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param string|null $componentId ID of the component to speak |
||
| 16 | * @param ScrollAlign $align Alignment when scrolling to the item |
||
| 17 | * @param HighlightMode $highlightMode How to highlight the item being spoken |
||
| 18 | * @param int|null $minimumDwellTime Minimum time to dwell on each item in milliseconds |
||
| 19 | */ |
||
| 20 | 8 | public function __construct( |
|
| 21 | public ?string $componentId = null, |
||
| 22 | public ScrollAlign $align = ScrollAlign::VISIBLE, |
||
| 23 | public HighlightMode $highlightMode = HighlightMode::BLOCK, |
||
| 24 | public ?int $minimumDwellTime = null, |
||
| 25 | ) { |
||
| 26 | 8 | parent::__construct(self::TYPE); |
|
| 27 | } |
||
| 28 | |||
| 29 | 6 | public function jsonSerialize(): array |
|
| 45 | } |
||
| 46 | } |
||
| 47 |