Total Complexity | 2 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | class Mailcode_Factory_Exception extends Mailcode_Exception |
||
22 | { |
||
23 | /** |
||
24 | * @var Mailcode_Commands_Command|NULL |
||
25 | */ |
||
26 | protected $command; |
||
27 | |||
28 | /** |
||
29 | * @param string $message |
||
30 | * @param string|NULL $details |
||
31 | * @param int|NULL $code |
||
32 | * @param \Exception|NULL $previous |
||
33 | * @param Mailcode_Commands_Command|NULL $command |
||
34 | */ |
||
35 | public function __construct(string $message, $details=null, $code=null, $previous=null, Mailcode_Commands_Command $command=null) |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * Retrieves the erroneous command, if any. |
||
44 | * |
||
45 | * @return Mailcode_Commands_Command|NULL |
||
46 | */ |
||
47 | public function getCommand() : ?Mailcode_Commands_Command |
||
52 |