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
Pull Request — master (#63)
by Piotr
07:27
created

ReactionsPayloadResponse   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 47
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 6
lcom 1
cbo 1
dl 0
loc 47
c 1
b 1
f 0
ccs 0
cts 23
cp 0
rs 10

5 Methods

Rating   Name   Duplication   Size   Complexity  
A getMessage() 0 4 1
A setMessage() 0 4 1
A getChannel() 0 4 1
A setChannel() 0 4 1
A getReactions() 0 8 2
1
<?php
2
3
/*
4
 * This file is part of the Slack API library.
5
 *
6
 * (c) Cas Leentfaar <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace CL\Slack\Payload;
13
14
/**
15
 * @author Cas Leentfaar <[email protected]>
16
 */
17
class ReactionsPayloadResponse extends AbstractPayloadResponse
18
{
19
    private $message;
20
21
    private $channel;
22
23
    /**
24
     * @return mixed
25
     */
26
    public function getMessage()
27
    {
28
        return $this->message;
29
    }
30
31
    /**
32
     * @param mixed $message
33
     */
34
    public function setMessage($message)
35
    {
36
        $this->message = $message;
37
    }
38
39
    /**
40
     * @return mixed
41
     */
42
    public function getChannel()
43
    {
44
        return $this->channel;
45
    }
46
47
    /**
48
     * @param mixed $channel
49
     */
50
    public function setChannel($channel)
51
    {
52
        $this->channel = $channel;
53
    }
54
55
    public function getReactions()
56
    {
57
        if (!isset($this->message['reactions'])) {
58
            return [];
59
        }
60
61
        return $this->message['reactions'];
62
    }
63
}
64