TYPO3
7.6
Users
bogdan
Projects
Kapeli
Resources
Dash
Docsets
TYPO3
src
vendor
symfony
console
Event
ConsoleExceptionEvent.php
Go to the documentation of this file.
1
<?php
2
3
/*
4
* This file is part of the Symfony package.
5
*
6
* (c) Fabien Potencier <fabien@symfony.com>
7
*
8
* For the full copyright and license information, please view the LICENSE
9
* file that was distributed with this source code.
10
*/
11
12
namespace
Symfony\Component\Console\Event;
13
14
use
Symfony\Component\Console\Command\Command
;
15
use
Symfony\Component\Console\Input\InputInterface
;
16
use
Symfony\Component\Console\Output\OutputInterface
;
17
23
class
ConsoleExceptionEvent
extends
ConsoleEvent
24
{
25
private
$exception
;
26
private
$exitCode
;
27
28
public
function
__construct
(
Command
$command
,
InputInterface
$input
,
OutputInterface
$output
, \Exception
$exception
,
$exitCode
)
29
{
30
parent::__construct($command, $input, $output);
31
32
$this->
setException
($exception);
33
$this->exitCode = (int)
$exitCode
;
34
}
35
41
public
function
getException
()
42
{
43
return
$this->exception
;
44
}
45
53
public
function
setException
(\Exception
$exception
)
54
{
55
$this->exception =
$exception
;
56
}
57
63
public
function
getExitCode
()
64
{
65
return
$this->exitCode
;
66
}
67
}
Generated on Wed Nov 11 2015 01:51:52 for TYPO3 by
1.8.3