
【主 题】:提交runing字段 【描 述】: [原因]:正则匹配 bind_route 添加runing字段 PS:对应取出bind_route的, 即分割符 [过程]: [影响]: 【结 束】
39 lines
729 B
PHP
39 lines
729 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace PhpMqtt\Client;
|
|
|
|
/**
|
|
* Represents an unsubscribe request.
|
|
*
|
|
* @package PhpMqtt\Client
|
|
*/
|
|
class UnsubscribeRequest extends PendingMessage
|
|
{
|
|
/** @var string[] */
|
|
private array $topicFilters;
|
|
|
|
/**
|
|
* Creates a new unsubscribe request object.
|
|
*
|
|
* @param string[] $topicFilters
|
|
*/
|
|
public function __construct(int $messageId, array $topicFilters)
|
|
{
|
|
parent::__construct($messageId);
|
|
|
|
$this->topicFilters = array_values($topicFilters);
|
|
}
|
|
|
|
/**
|
|
* Returns the topic filters in this request.
|
|
*
|
|
* @return string[]
|
|
*/
|
|
public function getTopicFilters(): array
|
|
{
|
|
return $this->topicFilters;
|
|
}
|
|
}
|