mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2026-02-04 01:09:25 -05:00
BpNode: add and use countChildren method
This commit is contained in:
parent
2001b2445e
commit
057d99cab5
1 changed files with 6 additions and 1 deletions
|
|
@ -156,9 +156,14 @@ class BpNode extends Node
|
|||
}
|
||||
}
|
||||
|
||||
public function countChildren()
|
||||
{
|
||||
return count($this->getChildren());
|
||||
}
|
||||
|
||||
public function hasChildren()
|
||||
{
|
||||
return count($this->children) > 0;
|
||||
return $this->countChildren() > 0;
|
||||
}
|
||||
|
||||
public function setDisplay($display)
|
||||
|
|
|
|||
Loading…
Reference in a new issue