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.

ImHistoryPayloadResponse   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 41
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 33.33%

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 41
c 0
b 0
f 0
ccs 2
cts 6
cp 0.3333
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getLatest() 0 4 1
A getMessages() 0 4 1
A getHasMore() 0 4 1
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
use CL\Slack\Model\SimpleMessage;
15
16
/**
17
 * @author Cas Leentfaar <[email protected]>
18
 */
19
class ImHistoryPayloadResponse extends AbstractPayloadResponse
20
{
21
    /**
22
     * @var string|null
23
     */
24
    private $latest;
25
26
    /**
27
     * @var SimpleMessage[]
28
     */
29
    private $messages;
30
31
    /**
32
     * @var bool
33
     */
34
    private $hasMore;
35
36
    /**
37
     * @return string|null The (Slack) timestamp on which the latest action was performed on the channel.
38
     */
39
    public function getLatest()
40
    {
41
        return $this->latest;
42
    }
43
44
    /**
45
     * @return SimpleMessage[] The (Slack) messages posted on the channel.
46
     */
47 1
    public function getMessages()
48
    {
49 1
        return $this->messages;
50
    }
51
52
    /**
53
     * @return bool Whether there are more messages that can be queried by using the 'latest' timestamp returned.
54
     */
55
    public function getHasMore()
56
    {
57
        return $this->hasMore;
58
    }
59
}
60