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

ClearCacheEvent   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 37
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 4
Bugs 0 Features 2
Metric Value
wmc 1
c 4
b 0
f 2
lcom 0
cbo 0
dl 0
loc 37
ccs 0
cts 6
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 11 1
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