Completed
Push — master ( 039325...4e8005 )
by Alexander
11:24
created

StoppableEvent::stopPropogation()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
nc 1
nop 0
1
<?php
2
namespace Yii\EventDispatcher\Tests\Event;
3
4
use Psr\EventDispatcher\StoppableEventInterface;
5
6
class StoppableEvent extends Event implements StoppableEventInterface
7
{
8
    private $isPropogationStopped = false;
9
10
    public function isPropagationStopped(): bool
11
    {
12
        return $this->isPropogationStopped;
13
    }
14
15
    public function stopPropogation()
16
    {
17
        $this->isPropogationStopped = true;
18
    }
19
}
20