1 | <?php |
||
26 | class ParseException extends \ErrorException |
||
27 | { |
||
28 | /** |
||
29 | * Constructs a ParseException |
||
30 | * |
||
31 | * @param string $message The value to parse |
||
32 | * @param bool $origin_exception To throw the exception in the .env |
||
33 | * @param string $file The .env file |
||
34 | * @param string $line The line of the value |
||
35 | * @param int $line_num The line num of the value |
||
36 | * |
||
37 | * @return \M1\Env\Exception\ParseException The exception |
||
|
|||
38 | */ |
||
39 | 15 | public function __construct($message, $origin_exception = false, $file = null, $line = null, $line_num = null) |
|
49 | |||
50 | /** |
||
51 | * Constructs a ParseException message |
||
52 | * |
||
53 | * @param string $message The value to parse |
||
54 | * @param string $file The .env file |
||
55 | * @param string $line The line of the value |
||
56 | * @param int $line_num The line num of the value |
||
57 | * |
||
58 | * @return string The exception message |
||
59 | */ |
||
60 | 15 | private function createMessage($message, $file, $line, $line_num) |
|
76 | } |
||
77 |
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.