Passed
Branch master (3df4b8)
by ANTHONIUS
06:36
created

PreConfigureEvent   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 35
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 35
ccs 9
cts 9
cp 1
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getComposer() 0 3 1
A __construct() 0 6 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 Zend\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
    /**
25
     * @var Composer
26
     */
27
    private $composer;
28
29
30 2
    public function __construct(Composer $composer, IOInterface $output)
31
    {
32 2
        $this->output       = $output;
33 2
        $this->composer     = $composer;
34
35 2
        parent::__construct(Plugin::YAWIK_PRE_CONFIGURE_EVENT);
36 2
    }
37
38
    /**
39
     * @return IOInterface
40
     */
41 2
    public function getOutput()
42
    {
43 2
        return $this->output;
44
    }
45
46
    /**
47
     * @return Composer
48
     */
49 1
    public function getComposer()
50
    {
51 1
        return $this->composer;
52
    }
53
}
54