Sets the imports
array $imports:
\RuntimeException
public function setImports(array $imports) {
if ($this->namespaces) {
throw new \RuntimeException('You must either use addNamespace(), or setImports(), but not both.');
}
$this->imports = $imports;
}