From 47b8f009006812212a1b87e588bab34e193a8a41 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Wed, 28 Jan 2015 19:53:55 +0100 Subject: [PATCH] Node: clean up and document properties --- library/Businessprocess/Node.php | 48 ++++++++++++++++++++++++++++++-- 1 file changed, 45 insertions(+), 3 deletions(-) diff --git a/library/Businessprocess/Node.php b/library/Businessprocess/Node.php index 21f4ada..4062454 100644 --- a/library/Businessprocess/Node.php +++ b/library/Businessprocess/Node.php @@ -12,16 +12,58 @@ abstract class Node const FLAG_NONE = 8; const SHIFT_FLAGS = 4; + /** + * Main business process object + * + * @var BusinessProcess + */ protected $bp; + + /** + * Parent node + * + * @var Node + */ protected $parent; + + /** + * Node identifier + * + * @var string + */ protected $name; + + /** + * Node state + * + * @var int + */ protected $state; - protected $description; - # protected $flags = 0; + + /** + * Whether this nodes state has been acknowledged + * + * @var bool + */ protected $ack; + + /** + * Whether this node is in a scheduled downtime + * + * @var bool + */ protected $downtime; - protected $recent_problems = array(); + + // obsolete protected $duration; + + /** + * Last state change, unix timestamp + * + * @var int + */ + protected $lastStateChange; + protected $missing = false; protected static $state_names = array(