PreConfigureEvent::getOutput()   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 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
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\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