Event::setPropagationStopped()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 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