Generator/PHPFile.php
function imports($imported_classes = []) {
    $imports = [];

    if ($imported_classes) {
      // Sort the imported classes.
      sort($imported_classes);

      foreach ($imported_classes as $fully_qualified_class_name) {
        $fully_qualified_class_name = ltrim($fully_qualified_class_name, '\\');
        $imports[] = "use $fully_qualified_class_name;";
      }

      $imports[] = '';
    }

    return $imports;
  }
function imports($imported_classes = []) {
    $imports = [];

    if ($imported_classes) {
      // Sort the imported classes.
      sort($imported_classes);

      foreach ($imported_classes as $fully_qualified_class_name) {
        $fully_qualified_class_name = ltrim($fully_qualified_class_name, '\\');
        $imports[] = "use $fully_qualified_class_name;";
      }

      $imports[] = '';
    }

    return $imports;
  }
function imports ( $ imported_classes = [ ] ) { $ imports = [ ] ; if ( $ imported_classes ) { // Sort the imported classes. sort ( $ imported_classes ) ; foreach ( $ imported_classes as $ fully_qualified_class_name ) { $ fully_qualified_class_name = ltrim ( $ fully_qualified_class_name , '\\' ) ; $ imports [ ] = "use $fully_qualified_class_name;" ; } $ imports [ ] = '' ; } return $ imports ; }
Produces the namespace import statements.

@param $imported_classes
(optional) An array of fully-qualified class names.
Produces the namespace import statements .