add getProjectTitle convenience method to the Build class.

This commit is contained in:
meadsteve 2014-02-25 22:36:20 +00:00
commit 2b93fe0c94
2 changed files with 10 additions and 1 deletions

View file

@ -36,6 +36,15 @@ class Build extends BuildBase
return '#';
}
/**
* @return string
*/
public function getProjectTitle()
{
$project = $this->getProject();
return $project ? $project->getTitle() : "";
}
/**
* Get link to branch from another source (i.e. Github)
*/