GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 9a7ea4...53d770 )
by Yang
02:32
created

UpdateSubscriptionAttributes   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 51
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

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