| Total Complexity | 8 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 7 | class SendEventCommand extends AbstractStandardCommand implements \JsonSerializable |
||
| 8 | { |
||
| 9 | public const TYPE = 'SendEvent'; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @param array|null $arguments Array of arguments to send with the event |
||
| 13 | * @param array|null $components Array of components related to the event |
||
| 14 | * @param array|null $flags Flags including interaction mode settings |
||
| 15 | */ |
||
| 16 | 7 | public function __construct( |
|
| 17 | public ?array $arguments = null, |
||
| 18 | public ?array $components = null, |
||
| 19 | public ?array $flags = null, |
||
| 20 | ) { |
||
| 21 | 7 | parent::__construct(self::TYPE); |
|
| 22 | } |
||
| 23 | |||
| 24 | 5 | public function jsonSerialize(): array |
|
| 41 | } |
||
| 42 | } |
||
| 43 |