| 1 | <?php |
||
| 7 | class ThreadControl implements \JsonSerializable |
||
| 8 | { |
||
| 9 | use ValidatorTrait; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @var int |
||
| 13 | */ |
||
| 14 | protected $recipientId; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var null|int |
||
| 18 | */ |
||
| 19 | protected $targetAppId; |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @var null|string |
||
| 23 | */ |
||
| 24 | protected $metadata; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * PassThreadControl constructor. |
||
| 28 | * |
||
| 29 | * @param int $recipientId |
||
| 30 | * @param int|null $targetAppId |
||
| 31 | */ |
||
| 32 | 2 | public function __construct(int $recipientId, int $targetAppId = null) |
|
| 37 | |||
| 38 | /** |
||
| 39 | * @param string $metadata |
||
| 40 | */ |
||
| 41 | public function setMetadata(string $metadata): void |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @return array |
||
| 50 | */ |
||
| 51 | 2 | public function jsonSerialize(): array |
|
| 63 | } |
||
| 64 |