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.
Passed
Branch master (b10c57)
by milkmeowo
02:58
created

MessagePropertiesForPublish   A

Complexity

Total Complexity 7

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 34
rs 10
c 0
b 0
f 0
wmc 7
1
<?php
2
namespace AliyunMNS\Traits;
3
4
use AliyunMNS\Constants;
5
use AliyunMNS\Model\MessageAttributes;
6
7
trait MessagePropertiesForPublish
8
{
9
    public $messageBody;
10
    public $messageAttributes;
11
12
    public function getMessageBody()
13
    {
14
        return $this->messageBody;
15
    }
16
17
    public function setMessageBody($messageBody)
18
    {
19
        $this->messageBody = $messageBody;
20
    }
21
22
    public function getMessageAttributes()
23
    {
24
        return $this->messageAttributes;
25
    }
26
27
    public function setMessageAttributes($messageAttributes)
28
    {
29
        $this->messageAttributes = $messageAttributes;
30
    }
31
32
    public function writeMessagePropertiesForPublishXML(\XMLWriter $xmlWriter)
33
    {
34
        if ($this->messageBody != NULL)
35
        {
36
            $xmlWriter->writeElement(Constants::MESSAGE_BODY, $this->messageBody);
37
        }
38
        if ($this->messageAttributes !== NULL)
39
        {
40
            $this->messageAttributes->writeXML($xmlWriter);
41
        }
42
    }
43
}
44
45
?>
46