Completed
Branch master (7a7471)
by ANTHONIUS
05:27
created

ConfigureEvent   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 33
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getOptions() 0 3 1
A getModules() 0 3 1
A __construct() 0 5 1
1
<?php
2
3
/*
4
 * This file is part of the Yawik project.
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
namespace Yawik\Composer\Event;
11
12
use Composer\EventDispatcher\Event;
13
use Core\Options\ModuleOptions as CoreOptions;
14
use Yawik\Composer\Plugin;
15
16
/**
17
 * Class ConfigureYawikEvent
18
 * @package Yawik\Composer\Event
19
 */
20
class ConfigureEvent extends Event
21
{
22
    /**
23
     * @var array
24
     */
25
    private $modules;
26
27
    /**
28
     * @var CoreOptions
29
     */
30
    private $options;
31
32
    public function __construct(CoreOptions $options, $modules)
33
    {
34
        $this->modules  = $modules;
35
        $this->options  = $options;
36
        parent::__construct(Plugin::YAWIK_CONFIGURE_EVENT);
37
    }
38
39
    /**
40
     * @return array
41
     */
42
    public function getModules()
43
    {
44
        return $this->modules;
45
    }
46
47
    /**
48
     * @return CoreOptions
49
     */
50
    public function getOptions()
51
    {
52
        return $this->options;
53
    }
54
}
55