public function renderRelease(Release $release)
	{
		$name = $release->getName();

		if ($release->getLink() !== null)
		{
			$name = "[$name]";
		}

		if ($release->getLinkName() !== null)
		{
			$name .= "[{$release->getLinkName()}]";
		}

		$content = "\n## $name";

		$content .= $this->addDate($release);
		$content .= $this->addYanked($release);

		$content .= "\n";

		foreach ($release->getAllChanges() as $type => $changes)
		{
			$content .= $this->renderType($type, $changes);
		}

		return substr($content, 0, strlen($content)-1);
	}
public function renderRelease(Release $release)
	{
		$name = $release->getName();

		if ($release->getLink() !== null)
		{
			$name = "[$name]";
		}

		if ($release->getLinkName() !== null)
		{
			$name .= "[{$release->getLinkName()}]";
		}

		$content = "\n## $name";

		$content .= $this->addDate($release);
		$content .= $this->addYanked($release);

		$content .= "\n";

		foreach ($release->getAllChanges() as $type => $changes)
		{
			$content .= $this->renderType($type, $changes);
		}

		return substr($content, 0, strlen($content)-1);
	}
public function renderRelease ( Release $ release ) { $ name = $ release -> getName ( ) ; if ( $ release -> getLink ( ) !== null ) { $ name = "[$name]" ; } if ( $ release -> getLinkName ( ) !== null ) { $ name .= "[{$release->getLinkName()}]" ; } $ content = "\n## $name" ; $ content .= $ this -> addDate ( $ release ) ; $ content .= $ this -> addYanked ( $ release ) ; $ content .= "\n" ; foreach ( $ release -> getAllChanges ( ) as $ type => $ changes ) { $ content .= $ this -> renderType ( $ type , $ changes ) ; } return substr ( $ content , 0 , strlen ( $ content ) - 1 ) ; }
Converts a Release into its text representation.

@param Release $release

@return string
Converts a Release into its text representation .