1 | <?php |
||
11 | class EnvironmentVariableNotFoundException extends Exception |
||
12 | { |
||
13 | /** |
||
14 | * The output returned from the operation. |
||
15 | * |
||
16 | * @var array |
||
17 | */ |
||
18 | public $output; |
||
19 | |||
20 | /** |
||
21 | * Create a new exception instance. |
||
22 | * |
||
23 | * @return void |
||
|
|||
24 | */ |
||
25 | public function __construct($env_var) |
||
31 | |||
32 | /** |
||
33 | * The output returned from the operation. |
||
34 | * |
||
35 | * @return array |
||
36 | */ |
||
37 | public function output() |
||
41 | } |
||
42 |
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.