Completed
Push — master ( 808f8c...952fde )
by Vladimir
11s
created

PageViewDefinitionAdded   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 60%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 19
ccs 3
cts 5
cp 0.6
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getFolderName() 0 4 1
1
<?php
2
3
/**
4
 * @copyright 2018 Vladimir Jimenez
5
 * @license   https://github.com/allejo/stakx/blob/master/LICENSE.md MIT
6
 */
7
8
namespace allejo\stakx\Event;
9
10
use Symfony\Component\EventDispatcher\Event;
11
12
/**
13
 * A notification-only event that is triggered whenever a valid PageView folder is scanned.
14
 *
15
 * @since 0.2.0
16
 */
17
class PageViewDefinitionAdded extends Event
18
{
19
    const NAME = 'pageview.definition.added';
20
21
    private $folderName;
22
23 18
    public function __construct($folderName)
24
    {
25 18
        $this->folderName = $folderName;
26 18
    }
27
28
    /**
29
     * @return string
30
     */
31
    public function getFolderName()
32
    {
33
        return $this->folderName;
34
    }
35
}
36