| 1 | <?php |
||
| 18 | class PhpParser implements Reader |
||
| 19 | { |
||
| 20 | private $reflectionClassLocator; |
||
| 21 | private $astParser; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Constructor |
||
| 25 | * |
||
| 26 | * @param Locator $locator Class source code locator |
||
| 27 | */ |
||
| 28 | 4 | public function __construct(Locator $locator) |
|
| 33 | |||
| 34 | /** |
||
| 35 | * Parses PHP code into a node tree. |
||
| 36 | * |
||
| 37 | * @param string $className A fully qualified name of class, which will be parsed |
||
| 38 | * |
||
| 39 | * @return Node[] Array of php nodes |
||
| 40 | */ |
||
| 41 | 4 | public function getNodes(string $className) : array |
|
| 52 | } |
||
| 53 |