Completed
Pull Request — master (#67)
by Vladimir
02:34
created

DatasetDefinitionAdded::getDatasetName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

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
eloc 2
nc 1
nop 0
crap 2
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 for when a Dataset definition is scanned.
14
 *
15
 * @since 0.2.0
16
 */
17
class DatasetDefinitionAdded extends Event
18
{
19
    const NAME = 'dataset.definition.added';
20
21
    private $datasetName;
22
    private $datasetFolder;
23
24 1
    public function __construct($datasetName, $datasetFolder)
25
    {
26 1
        $this->datasetName = $datasetName;
27 1
        $this->datasetFolder = $datasetFolder;
28 1
    }
29
30
    /**
31
     * @return string
32
     */
33
    public function getDatasetName()
34
    {
35
        return $this->datasetName;
36
    }
37
38
    /**
39
     * @return string
40
     */
41
    public function getDatasetFolder()
42
    {
43
        return $this->datasetFolder;
44
    }
45
}
46