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.

SimpleChannel::getCreator()   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/channel
18
 */
19
class SimpleChannel extends AbstractModel
20
{
21
    /**
22
     * @var string
23
     */
24
    protected $id;
25
26
    /**
27
     * @var string
28
     */
29
    protected $name;
30
31
    /**
32
     * @var \DateTime
33
     */
34
    protected $created;
35
36
    /**
37
     * @var string
38
     */
39
    protected $creator;
40
41
    /**
42
     * @var bool
43
     */
44
    protected $isArchived;
45
46
    /**
47
     * @var bool
48
     */
49
    protected $isGeneral;
50
51
    /**
52
     * @return string The ID of this channel.
53
     */
54 1
    public function getId()
55
    {
56 1
        return $this->id;
57
    }
58
59
    /**
60
     * @return string The name of the channel, without a leading hash sign.
61
     */
62 1
    public function getName()
63
    {
64 1
        return $this->name;
65
    }
66
67
    /**
68
     * @return \DateTime The date/time on which this channel was created.
69
     */
70 1
    public function getCreated()
71
    {
72 1
        return $this->created;
73
    }
74
75
    /**
76
     * @return string The user ID of the member that created this channel.
77
     */
78 1
    public function getCreator()
79
    {
80 1
        return $this->creator;
81
    }
82
83
    /**
84
     * @return bool True if this channel has been archived, false otherwise.
85
     */
86 1
    public function isArchived()
87
    {
88 1
        return $this->isArchived;
89
    }
90
91
    /**
92
     * @return bool Returns true if this channel is the "general" channel that includes all regular team members,
93
     *              false otherwise. In most teams this is called #general but some teams have renamed it.
94
     */
95 1
    public function isGeneral()
96
    {
97 1
        return $this->isGeneral;
98
    }
99
}
100