private function convertNodes(array &$data): void
    {
        array_walk_recursive(
            $data,
            function (&$value) {
                if ($value instanceof NodeInterface) {
                    $value = IDEncoder::encode($value);
                }
            }
        );
    }
private function convertNodes(array &$data): void
    {
        array_walk_recursive(
            $data,
            function (&$value) {
                if ($value instanceof NodeInterface) {
                    $value = IDEncoder::encode($value);
                }
            }
        );
    }
private function convertNodes ( array & $ data ) : void { array_walk_recursive ( $ data , function ( & $ value ) { if ( $ value instanceof NodeInterface ) { $ value = IDEncoder :: encode ( $ value ) ; } } ) ; }
Convert nodes to ID

@param array $data
Convert nodes to ID