Completed
Push — master ( 7b9015...c5b311 )
by Vladimir
26s queued 11s
created

PageViewDefinitionAdded::getFolderName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
/**
4
 * @copyright 2018 Vladimir Jimenez
5
 * @license   https://github.com/stakx-io/stakx/blob/master/LICENSE.md MIT
6
 */
7
8
namespace allejo\stakx\Event;
9
10
use allejo\stakx\Filesystem\Folder;
11
use Symfony\Component\EventDispatcher\Event;
12
13
/**
14
 * A notification-only event that is triggered whenever a valid PageView folder is scanned.
15
 *
16
 * @since 0.2.0
17
 */
18
class PageViewDefinitionAdded extends Event
19
{
20
    const NAME = 'pageview.definition.added';
21
22
    private $folder;
23
24 18
    public function __construct(Folder $folder)
25
    {
26 18
        $this->folder = $folder;
27 18
    }
28
29
    /**
30
     * @return string
0 ignored issues
show
Documentation introduced by
Should the return type not be Folder?

This check compares the return type specified in the @return annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.

Loading history...
31
     */
32
    public function getFolder()
33
    {
34
        return $this->folder;
35
    }
36
}
37