| Total Complexity | 5 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 9 | class ControlMediaCommand extends AbstractStandardCommand |
||
| 10 | { |
||
| 11 | public const TYPE = 'ControlMedia'; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @param ControlMediaCommandType|null $command The media control command to execute |
||
| 15 | * @param string|null $componentId The ID of the component to control |
||
| 16 | * @param int|null $value Integer value for commands that require it |
||
| 17 | */ |
||
| 18 | 5 | public function __construct( |
|
| 19 | public ?ControlMediaCommandType $command = null, |
||
| 20 | public ?string $componentId = null, |
||
| 21 | public ?int $value = null, |
||
| 22 | ) { |
||
| 23 | 5 | parent::__construct(self::TYPE); |
|
| 24 | } |
||
| 25 | |||
| 26 | 3 | public function jsonSerialize(): array |
|
| 43 | } |
||
| 44 | } |
||
| 45 |