Example #1
0
 public static function getUseStatements(ReflectionClass $class)
 {
     if (method_exists(self::$helper, 'getUseStatements')) {
         return self::$helper->getUseStatements($class);
     } else {
         return (new PhpParser())->parseClass(new \ReflectionClass($class->getName()));
     }
 }