protected function setNodeProperties(NodeInterface $node, array $properties, array $args = [])
    {
        foreach ($properties as $property => $value) {
            $value = count($args) && is_string($value) ? vsprintf($value, $args) : $value;
            $node->setProperty($property, $value);
        }
    }
protected function setNodeProperties(NodeInterface $node, array $properties, array $args = [])
    {
        foreach ($properties as $property => $value) {
            $value = count($args) && is_string($value) ? vsprintf($value, $args) : $value;
            $node->setProperty($property, $value);
        }
    }
protected function setNodeProperties ( NodeInterface $ node , array $ properties , array $ args = [ ] ) { foreach ( $ properties as $ property => $ value ) { $ value = count ( $ args ) && is_string ( $ value ) ? vsprintf ( $ value , $ args ) : $ value ; $ node -> setProperty ( $ property , $ value ) ; } }
Set node properties

@param NodeInterface $node
@param array $properties
@param array $args
Set node properties