private function processTypehint()
{
if (in_array($this->tokens[$this->id + 1][0], array(T_ARRAY, T_CALLABLE, T_STATIC))) {
$id = $this->processNextAsIdentifier();
$this->setAtom($id, array('fullnspath' => '\\' . strtolower($this->tokens[$this->id][1]), 'variadic' => false));
return $id;
} elseif (in_array($this->tokens[$this->id + 1][0], array(T_NS_SEPARATOR, T_STRING, T_NAMESPACE))) {
$id = $this->processOneNsname();
if (in_array(strtolower($this->tokens[$this->id][1]), array('int', 'bool', 'void', 'float', 'string'))) {
$this->setAtom($id, array('fullnspath' => '\\' . strtolower($this->tokens[$this->id][1])));
} else {
$this->addCall('class', $this->atoms[$id]['fullnspath'], $id);
}
return $id;
} else {
return 0;
}
}