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

ActivateEvent   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 34
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 8
dl 0
loc 34
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getOutput() 0 3 1
A getComposer() 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 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