private function addNamespaceUse($originId, $aliasId, $useType)
{
$fullnspath = $this->atoms[$originId]['fullnspath'];
if ($originId !== $aliasId) {
// Case of A as B
// Alias is the 'As' expression.
$offset = strrpos($this->atoms[$aliasId]['fullcode'], ' ');
$alias = strtolower(substr($this->atoms[$aliasId]['fullcode'], $offset + 1));
} elseif (($offset = strrpos($this->atoms[$aliasId]['fullnspath'], '\\')) === false) {
// namespace without \
$alias = strtolower($this->atoms[$aliasId]['fullnspath']);
} else {
// namespace with \
$alias = substr($this->atoms[$aliasId]['fullnspath'], $offset + 1);
}
$this->uses[$useType][strtolower($alias)] = $fullnspath;
return $alias;
}