Event   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 27
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A isPropagationStopped() 0 4 1
A setPropagationStopped() 0 5 1
1
<?php
2
/**
3
 * Veto.
4
 * PHP Microframework.
5
 *
6
 * @author Damien Walsh <[email protected]>
7
 * @copyright Damien Walsh 2013-2014
8
 * @version 0.1
9
 * @package veto
10
 */
11
namespace Veto\Event;
12
13
/**
14
 * The base class for Events.
15
 */
16
class Event
17
{
18
    /**
19
     * When true, the event will not trigger any more handlers.
20
     *
21
     * @var boolean
22
     */
23
    private $isPropagationStopped;
24
25
    /**
26
     * @return boolean
27
     */
28
    public function isPropagationStopped()
29
    {
30
        return $this->isPropagationStopped;
31
    }
32
33
    /**
34
     * @param boolean $isPropagationStopped
35
     * @return $this
36
     */
37
    public function setPropagationStopped($isPropagationStopped)
38
    {
39
        $this->isPropagationStopped = $isPropagationStopped;
40
        return $this;
41
    }
42
}
43