| Total Complexity | 5 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 7 | class SetValueCommand extends AbstractStandardCommand implements \JsonSerializable |
||
| 8 | { |
||
| 9 | public const TYPE = 'SetValue'; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @param string|null $componentId ID of the component to set value on |
||
| 13 | * @param string|null $property Property to set |
||
| 14 | * @param mixed $value Value to set |
||
| 15 | */ |
||
| 16 | 9 | public function __construct( |
|
| 17 | public ?string $componentId = null, |
||
| 18 | public ?string $property = null, |
||
| 19 | public mixed $value = null, |
||
| 20 | ) { |
||
| 21 | 9 | parent::__construct(self::TYPE); |
|
| 22 | } |
||
| 23 | |||
| 24 | 6 | public function jsonSerialize(): array |
|
| 41 | } |
||
| 42 | } |
||
| 43 |