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 ( 307738...eb711b )
by
unknown
03:26
created

Event   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 52
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 0

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 52
rs 10
wmc 4
lcom 1
cbo 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getName() 0 4 1
A isPropagationStopped() 0 4 1
A stopPropagation() 0 4 1
1
<?php
2
/**
3
 * See class comment
4
 *
5
 * PHP Version 5
6
 *
7
 * @category Netresearch
8
 * @package  Netresearch\Kite\Service\Event
9
 * @author   Christian Opitz <[email protected]>
10
 * @license  http://www.netresearch.de Netresearch Copyright
11
 * @link     http://www.netresearch.de
12
 */
13
14
namespace Netresearch\Kite\Service\Event;
15
16
/**
17
 * Class Event
18
 *
19
 * @category Netresearch
20
 * @package  Netresearch\Kite\Service\Event
21
 * @author   Christian Opitz <[email protected]>
22
 * @license  http://www.netresearch.de Netresearch Copyright
23
 * @link     http://www.netresearch.de
24
 */
25
class Event
26
{
27
    /**
28
     * @var string
29
     */
30
    protected $name;
31
32
    /**
33
     * @var boolean
34
     */
35
    protected $propagationStopped;
36
37
    /**
38
     * Construct
39
     *
40
     * @param string $name The event name
41
     */
42
    public function __construct($name)
43
    {
44
        $this->name = $name;
45
    }
46
47
    /**
48
     * Get name
49
     *
50
     * @return string
51
     */
52
    public function getName()
53
    {
54
        return $this->name;
55
    }
56
57
    /**
58
     * Determine if propagation was stopped
59
     *
60
     * @return boolean
61
     */
62
    public function isPropagationStopped()
63
    {
64
        return $this->propagationStopped;
65
    }
66
67
    /**
68
     * Stop the propagation
69
     *
70
     * @return void
71
     */
72
    public function stopPropagation()
73
    {
74
        $this->propagationStopped = true;
75
    }
76
}
77
?>
78