public function setQualifiedName($name)
{
if (false !== ($pos = strrpos($name, '\\'))) {
$this->namespace = trim(substr($name, 0, $pos), '\\');
$this->name = substr($name, $pos + 1);
return $this;
}
$this->namespace = null;
$this->name = $name;
return $this;
}