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

ActivateEvent::getOutput()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
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 Composer\EventDispatcher\Event;
14
use Composer\IO\IOInterface;
15
use Yawik\Composer\Plugin;
16
17
class ActivateEvent extends Event
18
{
19
    /**
20
     * @var IOInterface
21
     */
22
    private $output;
23
24
    /**
25
     * @var Composer
26
     */
27
    private $composer;
28
29
    public function __construct(Composer $composer, IOInterface $output)
30
    {
31
        $this->output       = $output;
32
        $this->composer     = $composer;
33
34
        parent::__construct(Plugin::YAWIK_ACTIVATE_EVENT);
35
    }
36
37
    /**
38
     * @return IOInterface
39
     */
40
    public function getOutput()
41
    {
42
        return $this->output;
43
    }
44
45
    /**
46
     * @return Composer
47
     */
48
    public function getComposer()
49
    {
50
        return $this->composer;
51
    }
52
}
53