1 | <?php |
||
14 | class ProcessorErrorException extends Exception |
||
15 | { |
||
16 | /** |
||
17 | * Command data. |
||
18 | * |
||
19 | * @var CommandInterface |
||
20 | */ |
||
21 | private $command; |
||
22 | |||
23 | /** |
||
24 | * Command processor. |
||
25 | * |
||
26 | * @var CommandProcessorInterface |
||
27 | */ |
||
28 | private $processor; |
||
29 | |||
30 | /** |
||
31 | * Class constructor. |
||
32 | * |
||
33 | * @param CommandInterface $command |
||
34 | * @param CommandProcessorInterface $processor |
||
35 | * @param string $message |
||
36 | * @param integer $code |
||
37 | * @param Exception $previous |
||
38 | */ |
||
39 | 2 | public function __construct(CommandInterface $command, CommandProcessorInterface $processor, $message = "", $code = 0, Exception $previous = null) |
|
45 | |||
46 | /** |
||
47 | * Get command. |
||
48 | * |
||
49 | * @return CommandInterface |
||
50 | */ |
||
51 | 1 | public function getCommand() |
|
55 | |||
56 | /** |
||
57 | * Get command processor. |
||
58 | * |
||
59 | * @return CommandProcessorInterface |
||
60 | */ |
||
61 | 1 | public function getProcessor() |
|
65 | } |
||
66 |