PostProcessEvent::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
3
/*
4
 * This file is part of Transfer.
5
 *
6
 * For the full copyright and license information, please view the LICENSE file located
7
 * in the root directory.
8
 */
9
10
namespace Transfer\Event;
11
12
use Symfony\Component\EventDispatcher\Event;
13
use Transfer\Processor\ProcessorInterface;
14
15
/**
16
 * Event triggered after a process is finished.
17
 */
18
class PostProcessEvent extends Event
19
{
20
    /**
21
     * @var ProcessorInterface Processor that finished the process
22
     */
23
    protected $processor;
24
25
    /**
26
     * @param ProcessorInterface $processor Processor that finished the process
27
     */
28 9
    public function __construct(ProcessorInterface $processor)
29
    {
30 9
        $this->processor = $processor;
31 9
    }
32
33
    /**
34
     * Returns processor that finished the process.
35
     *
36
     * @return ProcessorInterface Processor that finished the process
37
     */
38 1
    public function getProcessor()
39
    {
40 1
        return $this->processor;
41
    }
42
}
43