$nameResolver =
new NameResolver();
$nodeTraverser =
new NodeTraverser();
$nodeTraverser->
addVisitor($nameResolver);
return $nodeTraverser->
traverse($stmts);
} private function parseFile(string
$filePath): array
{ $parser =
(new ParserFactory())->
create(ParserFactory::PREFER_PHP7
);
return $this->
resolveNames($parser->
parse(file_get_contents($filePath)));
} /**
* @param class-string $entityClass
*/
private function dumpProperties(string
$entityClass, int
$deep = 1
): ?array
{ if ($deep === 3
) { return null;
}