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 ( 48cbe5...177d49 )
by Alexey
02:22
created

Channel   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 0
dl 0
loc 27
ccs 0
cts 8
cp 0
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getTarget() 0 4 1
1
<?php
2
3
namespace NotificationChannels\Pushbullet\Targets;
4
5
class Channel implements Targetable
6
{
7
    /**
8
     * PushBullet channel tag
9
     *
10
     * @var string
11
     */
12
    protected $channelTag;
13
14
    /**
15
     * Set channel tag
16
     *
17
     * @param  string  $channelTag
18
     */
19
    public function __construct($channelTag)
20
    {
21
        $this->channelTag = $channelTag;
22
    }
23
24
    /**
25
     * {@inheritdoc}
26
     */
27
    public function getTarget()
28
    {
29
        return ['channel_tag' => $this->channelTag];
30
    }
31
}