1 | <?php |
||
12 | class GitOutputEvent extends GitEvent |
||
13 | { |
||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | protected $type; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $buffer; |
||
23 | |||
24 | /** |
||
25 | * Constructs a GitEvent object. |
||
26 | * |
||
27 | * @param \GitWrapper\GitWrapper $wrapper |
||
28 | * The GitWrapper object that likely instantiated this class. |
||
29 | * @param \Symfony\Component\Process\Process $process |
||
30 | * The Process object being run. |
||
31 | * @param \GitWrapper\GitCommand $command |
||
32 | * The GitCommand object being executed. |
||
33 | */ |
||
34 | 72 | public function __construct(GitWrapper $wrapper, Process $process, GitCommand $command, $type, $buffer) |
|
40 | |||
41 | /** |
||
42 | * @return string |
||
43 | */ |
||
44 | public function getType() |
||
45 | { |
||
46 | return $this->type; |
||
47 | } |
||
48 | |||
49 | /** |
||
50 | * @return string |
||
51 | */ |
||
52 | 4 | public function getBuffer() |
|
56 | |||
57 | /** |
||
58 | * Tests wheter the buffer was captured from STDERR. |
||
59 | */ |
||
60 | 4 | public function isError() |
|
64 | } |
||
65 |