From c3bd7c4c72344f5ec795304c9852f89736b56a66 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Sat, 7 Feb 2015 00:25:41 +0100 Subject: [PATCH] BusinessProcess: allow to get and set backend --- library/Businessprocess/BusinessProcess.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/library/Businessprocess/BusinessProcess.php b/library/Businessprocess/BusinessProcess.php index 269da93..7f5fb5f 100644 --- a/library/Businessprocess/BusinessProcess.php +++ b/library/Businessprocess/BusinessProcess.php @@ -115,6 +115,22 @@ class BusinessProcess return $this->title ?: $this->getName(); } + public function setBackend(MonitoringBackend $backend) + { + $this->backend = $backend; + return $this; + } + + public function getBackend() + { + return $this->backend; + } + + public function hasBackend() + { + return $this->backend !== null; + } + public function hasBeenChanged() { return false;