public function returnTypeAsString()
    {
        $myPackage =& $this->containingPackage();
        $classDoc =& $this->_returnType->asClassDoc();
        if ($classDoc) {
            $packageDoc =& $classDoc->containingPackage();

            return '<a href="'.str_repeat('../', $myPackage->depth() + 1).$classDoc->asPath().'">'.$classDoc->name().$this->_returnType->dimension().'</a>';
        } else {
            return $this->_returnType->typeName().$this->_returnType->dimension();
        }
    }