1 | <?php |
||
15 | class RuntimeException extends \RuntimeException implements ExceptionInterface |
||
16 | { |
||
17 | private $parsedFile = null; |
||
18 | private $parsedLine = 0; |
||
19 | private $snippe = null; |
||
|
|||
20 | private $rawMessage = null; |
||
21 | |||
22 | /** |
||
23 | * Constructor. |
||
24 | * |
||
25 | * @param string $message The error message |
||
26 | * @param int $parsedLine The line where the error occurred |
||
27 | * @param int $snippet The snippet of code near the problem |
||
28 | * @param string $parsedFile The file name where the error occurred |
||
29 | * @param \Exception $previous The previous exception |
||
30 | * @codeCoverageIgnore |
||
31 | */ |
||
32 | public function __construct( |
||
48 | |||
49 | /** |
||
50 | * Gets the snippet of code near the error. |
||
51 | * |
||
52 | * @return string The snippet of code |
||
53 | * @codeCoverageIgnore |
||
54 | */ |
||
55 | public function getSnippet() |
||
59 | |||
60 | /** |
||
61 | * Sets the snippet of code near the error. |
||
62 | * |
||
63 | * @param string $snippet The code snippet |
||
64 | * @return void |
||
65 | * @codeCoverageIgnore |
||
66 | */ |
||
67 | public function setSnippet($snippet) |
||
73 | |||
74 | /** |
||
75 | * Gets the filename where the error occurred. |
||
76 | * |
||
77 | * This method returns null if a string is parsed. |
||
78 | * |
||
79 | * @return string The filename |
||
80 | * @codeCoverageIgnore |
||
81 | */ |
||
82 | public function getParsedFile() |
||
86 | |||
87 | /** |
||
88 | * Sets the filename where the error occurred. |
||
89 | * |
||
90 | * @param string $parsedFile The filename |
||
91 | * @codeCoverageIgnore |
||
92 | */ |
||
93 | public function setParsedFile($parsedFile = null) |
||
99 | |||
100 | /** |
||
101 | * Gets the line where the error occurred. |
||
102 | * |
||
103 | * @return int The file line |
||
104 | * @codeCoverageIgnore |
||
105 | */ |
||
106 | public function getParsedLine() |
||
110 | |||
111 | /** |
||
112 | * Sets the line where the error occurred. |
||
113 | * |
||
114 | * @param int $parsedLine The file line |
||
115 | * @return void |
||
116 | * @codeCoverageIgnore |
||
117 | */ |
||
118 | public function setParsedLine($parsedLine = 0) |
||
124 | |||
125 | /** |
||
126 | * @codeCoverageIgnore |
||
127 | */ |
||
128 | private function updateRepr() |
||
158 | } |
||
159 | |||
161 |
This check marks private properties in classes that are never used. Those properties can be removed.