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

ConfigureEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 2
dl 0
loc 5
rs 10
c 0
b 0
f 0
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