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
Pull Request — master (#71)
by
unknown
02:22 queued 15s
created

Team::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
rs 10
c 1
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Maknz\Slack;
4
5
class Team
6
{
7
    /**
8
     * @var string
9
     */
10
    private $name;
11
12
    /**
13
     * @var string
14
     */
15
    private $webhook;
16
17
    /**
18
     * @var string
19
     */
20
    private $defaultChannel;
21
22
    /**
23
     * @var string
24
     */
25
    private $username;
26
27
    /**
28
     * @var string
29
     */
30
    private $icon;
31
32
    /**
33
     * @param string $teamName
34
     * @param string $webhook
35
     * @param string $defaultChannel
36
     * @param $username
37
     * @param $icon
38
     */
39
    public function __construct($teamName, $webhook, $defaultChannel, $username, $icon)
40
    {
41
        $this->name = $teamName;
42
        $this->webhook = $webhook;
43
        $this->defaultChannel = $defaultChannel;
44
        $this->username = $username;
45
        $this->icon = $icon;
46
    }
47
48
    /**
49
     * @return string
50
     */
51
    public function getUsername()
52
    {
53
        return $this->username;
54
    }
55
56
    /**
57
     * @return string
58
     */
59
    public function getIcon()
60
    {
61
        return $this->icon;
62
    }
63
64
    /**
65
     * @return string
66
     */
67
    public function getName()
68
    {
69
        return $this->name;
70
    }
71
72
    /**
73
     * @return string
74
     */
75
    public function getWebhook()
76
    {
77
        return $this->webhook;
78
    }
79
80
    /**
81
     * @return string
82
     */
83
    public function getDefaultChannel()
84
    {
85
        return $this->defaultChannel;
86
    }
87
}
88