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.

ImHistoryPayload::getOldest()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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