| Total Complexity | 4 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| 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 | public function __construct(string $requestedOwnerAppId, string $metadata) |
||
| 26 | { |
||
| 27 | $this->requestedOwnerAppId = $requestedOwnerAppId; |
||
| 28 | $this->metadata = $metadata; |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | public function getRequestedOwnerAppId(): string |
||
| 35 | { |
||
| 36 | return $this->requestedOwnerAppId; |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return string |
||
| 41 | */ |
||
| 42 | public function getMetadata(): string |
||
| 43 | { |
||
| 44 | return $this->metadata; |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @param array $callbackData |
||
| 49 | * |
||
| 50 | * @return \Kerox\Messenger\Model\Callback\RequestThreadControl |
||
| 51 | */ |
||
| 52 | public static function create(array $callbackData): self |
||
| 55 | } |
||
| 56 | } |
||
| 57 |