1 | <?php |
||
5 | class PassThreadControl |
||
6 | { |
||
7 | /** |
||
8 | * @var string |
||
9 | */ |
||
10 | protected $newOwnerAppId; |
||
11 | |||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $metadata; |
||
16 | |||
17 | /** |
||
18 | * TakeThreadControl constructor. |
||
19 | * |
||
20 | * @param string $newOwnerAppId |
||
21 | * @param string $metadata |
||
22 | */ |
||
23 | 2 | public function __construct(string $newOwnerAppId, string $metadata) |
|
28 | |||
29 | /** |
||
30 | * @return string |
||
31 | */ |
||
32 | 1 | public function getNewOwnerAppId(): string |
|
36 | |||
37 | /** |
||
38 | * @return string |
||
39 | */ |
||
40 | 1 | public function getMetadata(): string |
|
44 | |||
45 | /** |
||
46 | * @param array $payload |
||
47 | * |
||
48 | * @return \Kerox\Messenger\Model\Callback\PassThreadControl |
||
49 | */ |
||
50 | 2 | public static function create(array $payload): PassThreadControl |
|
54 | } |
||
55 |