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

WebSocketAttributes   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 23
rs 10
c 0
b 0
f 0
wmc 4
1
<?php
2
namespace AliyunMNS\Model;
3
4
use AliyunMNS\Constants;
5
use AliyunMNS\Exception\MnsException;
6
7
class WebSocketAttributes
8
{
9
    public $importanceLevel;
10
11
    public function __construct($importanceLevel)
12
    {
13
        $this->importanceLevel = $importanceLevel;
14
    }
15
16
    public function setImportanceLevel($importanceLevel)
17
    {
18
        $this->importanceLevel = $importanceLevel;
19
    }
20
21
    public function getImportanceLevel()
22
    {
23
        return $this->importanceLevel;
24
    }
25
26
    public function writeXML(\XMLWriter $xmlWriter)
27
    {
28
        $jsonArray = array(Constants::IMPORTANCE_LEVEL => $this->importanceLevel);
29
        $xmlWriter->writeElement(Constants::WEBSOCKET, json_encode($jsonArray));
30
    }
31
}
32
33
?>
34