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

ConfigurationParseComplete   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 16
ccs 5
cts 5
cp 1
rs 10
c 1
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getConfiguration() 0 4 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