Completed
Pull Request — master (#69)
by Vladimir
02:48
created

ConfigurationParseComplete::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 4
c 1
b 0
f 0
rs 10
ccs 3
cts 3
cp 1
cc 1
nc 1
nop 1
crap 1
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\Configuration;
11
use Symfony\Component\EventDispatcher\Event;
12
13
class ConfigurationParseComplete extends Event
14
{
15
    const NAME = 'configuration.parse.complete';
16
17
    private $configuration;
18
19 36
    public function __construct(Configuration $configuration)
20
    {
21 36
        $this->configuration = $configuration;
22 36
    }
23
24 4
    public function getConfiguration()
25
    {
26 4
        return $this->configuration;
27
    }
28
}
29