ConfigureEvent::getOptions()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
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 Laminas\EventManager\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 1
    public function __construct(CoreOptions $options, $modules)
33
    {
34 1
        $this->modules  = $modules;
35 1
        $this->options  = $options;
36 1
        parent::__construct(Plugin::YAWIK_CONFIGURE_EVENT);
37 1
    }
38
39
    /**
40
     * @return array
41
     */
42 1
    public function getModules()
43
    {
44 1
        return $this->modules;
45
    }
46
47
    /**
48
     * @return CoreOptions
49
     */
50 1
    public function getOptions()
51
    {
52 1
        return $this->options;
53
    }
54
}
55