BusinessProcess: add title property

We allow process definitions to have nice titles, not just identifiers
This commit is contained in:
Thomas Gelf 2015-02-07 00:19:36 +01:00
parent a8cf07837f
commit df8a3df40b

View file

@ -26,6 +26,13 @@ class BusinessProcess
*/
protected $name;
/**
* Business process title
*
* @var string
*/
protected $title;
/**
* State type, soft or hard
*
@ -97,6 +104,17 @@ class BusinessProcess
return $this->name;
}
public function setTitle($title)
{
$this->title = $title;
return $this;
}
public function getTitle()
{
return $this->title ?: $this->getName();
}
public function hasBeenChanged()
{
return false;