protected keyForScope ( Baum\Node $node ) : string | ||
$node | Baum\Node | |
return | string |
protected function keyForScope($node)
{
return implode('-', array_map(function ($column) use($node) {
$value = $node->getAttribute($column);
if (is_null($value)) {
return 'NULL';
}
return $value;
}, $node->getScopedColumns()));
}