Total Complexity | 8 |
Total Lines | 60 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
13 | final class PhpParser |
||
14 | { |
||
15 | /** |
||
16 | * Parses a class. |
||
17 | * |
||
18 | * @param \ReflectionClass $class A <code>ReflectionClass</code> object. |
||
19 | * |
||
20 | * @return array A list with use statements in the form (Alias => FQN). |
||
21 | */ |
||
22 | public function parseClass(\ReflectionClass $class) |
||
45 | } |
||
46 | |||
47 | /** |
||
48 | * Gets the content of the file right up to the given line number. |
||
49 | * |
||
50 | * @param string $filename The name of the file to load. |
||
51 | * @param integer $lineNumber The number of lines to read from file. |
||
52 | * |
||
53 | * @return string|null The content of the file or null if the file does not exist. |
||
54 | */ |
||
55 | private function getFileContent($filename, $lineNumber) |
||
75 |