| Total Complexity | 2 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 5 | class SubscriptionMeta |
||
| 6 | { |
||
| 7 | // default NotifyStrategy BACKOFF_RETRY |
||
| 8 | // default NotifyContentFormat JSON |
||
| 9 | |||
| 10 | /* 订阅属性 |
||
| 11 | @note: 可修改 |
||
| 12 | :: Endpoint 推送消息地址 |
||
| 13 | :: Protocal 协议 |
||
| 14 | :: FilterTag 订阅 标签 |
||
| 15 | :: NotifyStrategy 重试策略 |
||
| 16 | :: NotifyContentFormat 推送消息格式 |
||
| 17 | */ |
||
| 18 | public $Endpoint; |
||
| 19 | public $Protocol; |
||
| 20 | public $FilterTag; |
||
| 21 | public $NotifyStrategy; |
||
| 22 | public $NotifyContentFormat; |
||
| 23 | public $bindingKey; |
||
| 24 | |||
| 25 | public function __construct() |
||
| 26 | { |
||
| 27 | $this->Endpoint = ''; |
||
| 28 | $this->Protocol = ''; |
||
| 29 | $this->FilterTag = []; |
||
| 30 | $this->NotifyStrategy = 'BACKOFF_RETRY'; |
||
| 31 | $this->NotifyContentFormat = 'JSON'; |
||
| 32 | $this->bindingKey = []; |
||
| 33 | } |
||
| 34 | |||
| 35 | public function __toString() |
||
| 47 | } |
||
| 48 | } |
||
| 49 |