public function getNodes($label = null, $labelizedKeys = false)
{
if (null !== $label) {
if (is_array($label)) {
$nodes = [];
foreach ($label as $lbl) {
$nodes[$lbl] = $this->getNodesByLabel($lbl);
}
return $nodes;
}
return $this->getNodesByLabel($label, $labelizedKeys);
}
return $this->nodes;
}