PreConfigureEvent   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 19
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getOutput() 0 3 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\Composer;
13
use Laminas\EventManager\Event;
14
use Composer\IO\IOInterface;
15
use Yawik\Composer\Plugin;
16
17
class PreConfigureEvent extends Event
18
{
19
    /**
20
     * @var IOInterface
21
     */
22
    private $output;
23
24 2
    public function __construct(IOInterface $output)
25
    {
26 2
        $this->output       = $output;
27 2
        parent::__construct(Plugin::YAWIK_PRE_CONFIGURE_EVENT);
28 2
    }
29
30
    /**
31
     * @return IOInterface
32
     */
33 2
    public function getOutput()
34
    {
35 2
        return $this->output;
36
    }
37
}
38