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
Push179622...b8268a
failed — Build
created

TaggedListener   A

↳ Parent: Project

Coupling/Cohesion

Components 1
Dependencies 1

Complexity

Total Complexity 5

Size/Duplication

Total Lines 52
Duplicated Lines 0 %

Test Coverage

Coverage 83.33%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 5
lcom 1
cbo 1
dl 0
loc 52
rs 10
c 1
b 0
f 1
ccs 10
cts 12
cp 0.8333

5 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A setTag() 0 4 1
A getTag() 0 4 1
A handle() 0 4 1
A isListener() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of Rocketeer
5
 *
6
 * (c) Maxime Fabre <ehtnam6@gmail.com>
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
13
namespace Rocketeer\Services\Events;
14
15
use League\Event\EventInterface;
16
use League\Event\ListenerInterface;
17
18
/**
19
 * A listener that can be assigned
20
 * a particular tag.
21
 */
22
class TaggedListener implements ListenerInterface
23
{
24
    /**
25
     * @var ListenerInterface
26
     */
27
    protected $listener;
28
29
    /**
30
     * @var string
31
     */
32
    protected $tag;
33
34
    /**
35
     * @param ListenerInterface $listener
36
     */
37 3
    public function __construct(ListenerInterface $listener)
38
    {
39 3
        $this->listener = $listener;
40 3
    }
41
42
    /**
43
     * @param string $tag
44
     */
45 3
    public function setTag($tag)
46
    {
47 3
        $this->tag = $tag;
48 3
    }
49
50
    /**
51
     * @return string
52
     */
53 3
    public function getTag()
54
    {
55 3
        return $this->tag;
56
    }
57
58
    /**
59
     * {@inheritdoc}
60
     */
61 3
    public function handle(EventInterface $event)
62
    {
63 3
        return $this->listener->handle($event);
64
    }
65
66
    /**
67
     * {@inheritdoc}
68
     */
69
    public function isListener($listener)
70
    {
71
        return $this->listener->isListener($listener);
72
    }
73
}
74