PreExecuteEvent::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
3
/**
4
 * This file is part of Bldr.io
5
 *
6
 * (c) Aaron Scherer <[email protected]>
7
 *
8
 * This source file is subject to the MIT license that is bundled
9
 * with this source code in the file LICENSE
10
 */
11
12
namespace Bldr\Event;
13
14
use Bldr\Task\TaskInterface;
15
use Symfony\Component\Process\Process;
16
17
/**
18
 * @author Mauricio Walters <[email protected]>
19
 * @author Aaron Scherer    <[email protected]>
20
 */
21
class PreExecuteEvent extends AbstractEvent
22
{
23
    /**
24
     * @var TaskInterface
25
     */
26
    private $task;
27
28
    /**
29
     * @var Process
30
     */
31
    private $process;
32
33
    /**
34
     * @param TaskInterface $task
35
     * @param Process       $process
36
     */
37
    public function __construct(TaskInterface $task, Process $process)
38
    {
39
        $this->task    = $task;
40
        $this->process = $process;
41
    }
42
43
    /**
44
     * @return TaskInterface
45
     */
46
    public function getTask()
47
    {
48
        return $this->task;
49
    }
50
51
    /**
52
     * @return Process
53
     */
54
    public function getProcess()
55
    {
56
        return $this->process;
57
    }
58
}
59