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.

ImChannel::isIm()   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\Model;
13
14
/**
15
 * @author Cas Leentfaar <[email protected]>
16
 *
17
 * @link Official documentation at https://api.slack.com/types/im
18
 */
19
class ImChannel extends AbstractModel
20
{
21
    /**
22
     * @var string
23
     */
24
    private $id;
25
26
    /**
27
     * @var \DateTime
28
     */
29
    private $created;
30
31
    /**
32
     * @var bool
33
     */
34
    private $isIm;
35
36
    /**
37
     * @var bool
38
     */
39
    private $isUserDeleted;
40
41
    /**
42
     * @var string
43
     */
44
    private $user;
45
46
    /**
47
     * @return string The ID of this channel.
48
     */
49 2
    public function getId()
50
    {
51 2
        return $this->id;
52
    }
53
54
    /**
55
     * @return \DateTime The date/time on which this channel was created.
56
     */
57 2
    public function getCreated()
58
    {
59 2
        return $this->created;
60
    }
61
62
    /**
63
     * @return bool
64
     */
65 2
    public function isIm()
66
    {
67 2
        return $this->isIm;
68
    }
69
70
    /**
71
     * @return bool
72
     */
73 2
    public function isUserDeleted()
74
    {
75 2
        return $this->isUserDeleted;
76
    }
77
78
    /**
79
     * @return string
80
     */
81 2
    public function getUserId()
82
    {
83 2
        return $this->user;
84
    }
85
}
86