for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Kerox\Messenger\Model\Callback;
class RequestThreadControl
{
/**
* @var string
*/
protected $requestedOwnerAppId;
protected $metadata;
* TakeThreadControl constructor.
*
* @param string $requestedOwnerAppId
* @param string $metadata
public function __construct(string $requestedOwnerAppId, string $metadata)
$this->requestedOwnerAppId = $requestedOwnerAppId;
$this->metadata = $metadata;
}
* @return string
public function getRequestedOwnerAppId(): string
return $this->requestedOwnerAppId;
public function getMetadata(): string
return $this->metadata;
* @param array $callbackData
* @return \Kerox\Messenger\Model\Callback\RequestThreadControl
public static function create(array $callbackData): self
return new self($callbackData['requested_owner_app_id'], $callbackData['metadata']);