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

ConfigurationParseComplete   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 60%

Importance

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

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 32
    public function __construct(Configuration $configuration)
20
    {
21 32
        $this->configuration = $configuration;
22 32
    }
23
24
    public function getConfiguration()
25
    {
26
        return $this->configuration;
27
    }
28
}
29