PostExecuteEvent   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 38
Duplicated Lines 0 %

Coupling/Cohesion

Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
cbo 1
dl 0
loc 38
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getTask() 0 4 1
A getProcess() 0 4 1
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
 */
20
class PostExecuteEvent extends AbstractEvent
21
{
22
    /**
23
     * @var TaskInterface
24
     */
25
    private $task;
26
27
    /**
28
     * @var Process
29
     */
30
    private $process;
31
32
    /**
33
     * @param TaskInterface $task
34
     * @param Process       $process
35
     */
36
    public function __construct(TaskInterface $task, Process $process)
37
    {
38
        $this->task    = $task;
39
        $this->process = $process;
40
    }
41
42
    /**
43
     * @return TaskInterface
44
     */
45
    public function getTask()
46
    {
47
        return $this->task;
48
    }
49
50
    /**
51
     * @return Process
52
     */
53
    public function getProcess()
54
    {
55
        return $this->process;
56
    }
57
}
58