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 ( c99574...e190cf )
by Cas
04:59
created

ChannelsHistoryPayload::getCount()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 0
crap 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
/**
15
 * Payload that triggers the channels.history-method; allowing you to
16
 * fetch historical information about a given channel.
17
 *
18
 * @author Cas Leentfaar <[email protected]>
19
 *
20
 * @link Official documentation at https://api.slack.com/methods/channels.history
21
 */
22
class ChannelsHistoryPayload extends AbstractPayload
23
{
24
    /**
25
     * @var string
26
     */
27
    private $channel;
28
29
    /**
30
     * @var string
31
     */
32
    private $oldest;
33
34
    /**
35
     * @var string
36
     */
37
    private $latest;
38
39
    /**
40
     * @var int
41
     */
42
    private $count;
43
44
    /**
45
     * @var bool
46
     */
47
    private $inclusive;
48
49
    /**
50
     * @param string $channelId
51
     */
52 1
    public function setChannelId($channelId)
53
    {
54 1
        $this->channel = $channelId;
55 1
    }
56
57
    /**
58
     * @return string
59
     */
60 1
    public function getChannelId()
61
    {
62 1
        return $this->channel;
63
    }
64
65
    /**
66
     * @param string|string|null $latest
67
     */
68 1
    public function setLatest($latest = null)
69
    {
70 1
        $this->latest = $latest;
71 1
    }
72
73
    /**
74
     * @return string|string|null
75
     */
76 1
    public function getLatest()
77
    {
78 1
        return $this->latest;
79
    }
80
81
    /**
82
     * @param string|null $oldest
83
     */
84 1
    public function setOldest($oldest = null)
85
    {
86 1
        $this->oldest = $oldest;
87 1
    }
88
89
    /**
90
     * @return string|null
91
     */
92 1
    public function getOldest()
93
    {
94 1
        return $this->oldest;
95
    }
96
97
    /**
98
     * @param int|null $count
99
     */
100 1
    public function setCount($count = null)
101
    {
102 1
        $this->count = $count;
103 1
    }
104
105
    /**
106
     * @return int|null
107
     */
108 1
    public function getCount()
109
    {
110 1
        return $this->count;
111
    }
112
113
    /**
114
     * @param bool $inclusive
115
     */
116
    public function setInclusive($inclusive)
117
    {
118
        $this->inclusive = $inclusive;
119
    }
120
121
    /**
122
     * @return bool
123
     */
124
    public function isInclusive()
125
    {
126
        return $this->inclusive;
127
    }
128
129
    /**
130
     * @inheritdoc
131
     */
132 1
    public function getMethod()
133
    {
134 1
        return 'channels.history';
135
    }
136
}
137