Total Complexity | 4 |
Total Lines | 48 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
7 | class RequestThreadControl |
||
8 | { |
||
9 | /** |
||
10 | * @var string |
||
11 | */ |
||
12 | protected $requestedOwnerAppId; |
||
13 | |||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | protected $metadata; |
||
18 | |||
19 | /** |
||
20 | * TakeThreadControl constructor. |
||
21 | * |
||
22 | * @param string $requestedOwnerAppId |
||
23 | * @param string $metadata |
||
24 | */ |
||
25 | 2 | public function __construct(string $requestedOwnerAppId, string $metadata) |
|
26 | { |
||
27 | 2 | $this->requestedOwnerAppId = $requestedOwnerAppId; |
|
28 | 2 | $this->metadata = $metadata; |
|
29 | 2 | } |
|
30 | |||
31 | /** |
||
32 | * @return string |
||
33 | */ |
||
34 | 1 | public function getRequestedOwnerAppId(): string |
|
35 | { |
||
36 | 1 | return $this->requestedOwnerAppId; |
|
37 | } |
||
38 | |||
39 | /** |
||
40 | * @return string |
||
41 | */ |
||
42 | 1 | public function getMetadata(): string |
|
43 | { |
||
44 | 1 | return $this->metadata; |
|
45 | } |
||
46 | |||
47 | /** |
||
48 | * @param array $callbackData |
||
49 | * |
||
50 | * @return \Kerox\Messenger\Model\Callback\RequestThreadControl |
||
51 | */ |
||
52 | 2 | public static function create(array $callbackData): self |
|
55 | } |
||
56 | } |
||
57 |