public function toString() {
		$docblock = "/**\n";
		
		// short description
		$short = trim($this->shortDescription);
		if (!empty($short)) {
			$docblock .= $this->writeLines(explode("\n", $short));
		}
		
		// short description
		$long = trim($this->longDescription);
		if (!empty($long)) {
			$docblock .= $this->writeLines(explode("\n", $long), !empty($short));
		}
		
		// tags
		$tags = $this->getSortedTags()->map(function($tag) {
			return $tag->toString();
		});
		
		if (!$tags->isEmpty()) {
			$docblock .= $this->writeLines($tags->toArray(), !empty($short) || !empty($long));
		}

		$docblock .= ' */';
		
		return $docblock;
	}
public function toString() {
		$docblock = "/**\n";
		
		// short description
		$short = trim($this->shortDescription);
		if (!empty($short)) {
			$docblock .= $this->writeLines(explode("\n", $short));
		}
		
		// short description
		$long = trim($this->longDescription);
		if (!empty($long)) {
			$docblock .= $this->writeLines(explode("\n", $long), !empty($short));
		}
		
		// tags
		$tags = $this->getSortedTags()->map(function($tag) {
			return $tag->toString();
		});
		
		if (!$tags->isEmpty()) {
			$docblock .= $this->writeLines($tags->toArray(), !empty($short) || !empty($long));
		}

		$docblock .= ' */';
		
		return $docblock;
	}
public function toString ( ) { $ docblock = "/**\n" ; // short description $ short = trim ( $ this -> shortDescription ) ; if ( ! empty ( $ short ) ) { $ docblock .= $ this -> writeLines ( explode ( "\n" , $ short ) ) ; } // short description $ long = trim ( $ this -> longDescription ) ; if ( ! empty ( $ long ) ) { $ docblock .= $ this -> writeLines ( explode ( "\n" , $ long ) , ! empty ( $ short ) ) ; } // tags $ tags = $ this -> getSortedTags ( ) -> map ( function ( $ tag ) { return $ tag -> toString ( ) ; } ) ; if ( ! $ tags -> isEmpty ( ) ) { $ docblock .= $ this -> writeLines ( $ tags -> toArray ( ) , ! empty ( $ short ) || ! empty ( $ long ) ) ; } $ docblock .= ' */' ; return $ docblock ; }
Returns the string version of the docblock

@return string
Returns the string version of the docblock