Completed
Pull Request — master (#10)
by Matze
07:31
created

ClearCacheEvent::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 8

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 4
Bugs 0 Features 2
Metric Value
c 4
b 0
f 2
dl 0
loc 11
ccs 0
cts 6
cp 0
rs 9.4286
cc 1
eloc 8
nc 1
nop 3
crap 2
1
<?php
2
3
namespace BrainExe\Core\EventDispatcher\Events;
4
5
use BrainExe\Core\EventDispatcher\AbstractEvent;
6
use Symfony\Component\Console\Application;
7
use Symfony\Component\Console\Input\InputInterface;
8
use Symfony\Component\Console\Output\OutputInterface;
9
10
class ClearCacheEvent extends AbstractEvent
11
{
12
13
    const NAME = 'cache.clear';
14
15
    /**
16
     * @var OutputInterface
17
     */
18
    public $output;
19
20
    /**
21
     * @var Application
22
     */
23
    public $application;
24
25
    /**
26
     * @var InputInterface
27
     */
28
    public $input;
29
30
    /**
31
     * @param Application $application
32
     * @param InputInterface $input
33
     * @param OutputInterface $output
34
     */
35
    public function __construct(
36
        Application $application,
37
        InputInterface $input,
38
        OutputInterface $output
39
    ) {
40
        parent::__construct(self::NAME);
41
42
        $this->output      = $output;
43
        $this->input       = $input;
44
        $this->application = $application;
45
    }
46
}
47