| 1 | <?php |
||
| 6 | class ErrorEvent extends Event |
||
| 7 | { |
||
| 8 | private $error; |
||
| 9 | private $exception; |
||
| 10 | private $data = array(); |
||
| 11 | |||
| 12 | public function __construct($error, \Exception $exception = null, $data = array()) |
||
| 18 | |||
| 19 | public function getError() |
||
| 23 | |||
| 24 | public function getException() |
||
| 28 | |||
| 29 | public function getData() |
||
| 33 | } |
||
| 34 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@returnannotation as described here.