public function addImport(ClassInterface $gClass, $alias = NULL) {
    $this->ownImports->add($gClass, $alias);
    return $this;
  }
public function addImport(ClassInterface $gClass, $alias = NULL) {
    $this->ownImports->add($gClass, $alias);
    return $this;
  }
public function addImport ( ClassInterface $ gClass , $ alias = NULL ) { $ this -> ownImports -> add ( $ gClass , $ alias ) ; return $ this ; }
Adds an import to the Class

in case the class is written with a ClassWriter, these classes will be added to the file as a "use" statement
@throws Exception when the alias (implicit or explicit) is already used (see Imports::add())
@param string $alias if not given the name of the class is used
Adds an import to the Class