UpdateSubscriptionAttributes.php
1.0 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?php
namespace AliyunMNS\Model;
use AliyunMNS\Constants;
class UpdateSubscriptionAttributes
{
private $subscriptionName;
private $strategy;
# may change in AliyunMNS\Topic
private $topicName;
public function __construct(
$subscriptionName = NULL,
$strategy = NULL)
{
$this->subscriptionName = $subscriptionName;
$this->strategy = $strategy;
}
public function getStrategy()
{
return $this->strategy;
}
public function setStrategy($strategy)
{
$this->strategy = $strategy;
}
public function getTopicName()
{
return $this->topicName;
}
public function setTopicName($topicName)
{
$this->topicName = $topicName;
}
public function getSubscriptionName()
{
return $this->subscriptionName;
}
public function writeXML(\XMLWriter $xmlWriter)
{
if ($this->strategy != NULL)
{
$xmlWriter->writeElement(Constants::STRATEGY, $this->strategy);
}
}
}
?>