BpNode: add and use countChildren method

This commit is contained in:
Thomas Gelf 2014-11-30 11:56:45 +01:00
parent 2001b2445e
commit 057d99cab5

View file

@ -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)