1 | <?php |
||
16 | class SyntaxException extends PhantomJsException |
||
17 | { |
||
18 | /** |
||
19 | * Error storage. |
||
20 | * |
||
21 | * @var array |
||
22 | * @access protected |
||
23 | */ |
||
24 | protected $errors; |
||
25 | |||
26 | /** |
||
27 | * Internal constructor. |
||
28 | * |
||
29 | * @access public |
||
30 | * @param string $exception |
||
31 | * @param array $errors (default: array()) |
||
32 | * @return void |
||
|
|||
33 | */ |
||
34 | 4 | public function __construct($exception, array $errors = array()) |
|
40 | |||
41 | /** |
||
42 | * Get errors. |
||
43 | * |
||
44 | * @access public |
||
45 | * @return array |
||
46 | */ |
||
47 | 1 | public function getErrors() |
|
51 | } |
||
52 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.