$this->traits
[] =
$trait;
} public function hasTraits(): bool
{ return \
count($this->traits
) > 0;
} public function embedTemplate(ModuleNode
$template) { $template->
setIndex(mt_rand());
$this->embeddedTemplates
[] =
$template;
} public function addImportedSymbol(string
$type, string
$alias, string
$name = null, AbstractExpression
$node = null
): void
{ $this->importedSymbols
[0
][$type][$alias] =
['name' =>
$name, 'node' =>
$node];
} public function getImportedSymbol(string
$type, string
$alias) {