| 1 | <?php |
||
| 9 | class ThreadControl implements \JsonSerializable |
||
| 10 | { |
||
| 11 | use ValidatorTrait; |
||
| 12 | |||
| 13 | /** |
||
| 14 | * @var int |
||
| 15 | */ |
||
| 16 | protected $recipientId; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var int|null |
||
| 20 | */ |
||
| 21 | protected $targetAppId; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var string|null |
||
| 25 | */ |
||
| 26 | protected $metadata; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * PassThreadControl constructor. |
||
| 30 | */ |
||
| 31 | 3 | public function __construct(int $recipientId, ?int $targetAppId = null) |
|
| 36 | |||
| 37 | /** |
||
| 38 | * @return \Kerox\Messenger\Model\ThreadControl |
||
| 39 | */ |
||
| 40 | 3 | public static function create(int $recipientId, ?int $targetAppId = null): self |
|
| 44 | |||
| 45 | /** |
||
| 46 | * @throws \Exception |
||
| 47 | */ |
||
| 48 | 3 | public function setMetadata(string $metadata): void |
|
| 54 | |||
| 55 | 3 | public function toArray(): array |
|
| 67 | |||
| 68 | 3 | public function jsonSerialize(): array |
|
| 72 | } |
||
| 73 |