mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-01-04 12:49:34 -05:00
BusinessProcess: add title property
We allow process definitions to have nice titles, not just identifiers
This commit is contained in:
parent
a8cf07837f
commit
df8a3df40b
1 changed files with 18 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue