private function cloneStructure(array & $struct): void
    {
        foreach ($struct as & $v) {
            if (is_object($v)) {
                $v = clone $v;
            } elseif (is_array($v)) {
                $this->cloneStructure($v);
            }
        }
    }
private function cloneStructure(array & $struct): void
    {
        foreach ($struct as & $v) {
            if (is_object($v)) {
                $v = clone $v;
            } elseif (is_array($v)) {
                $this->cloneStructure($v);
            }
        }
    }
private function cloneStructure ( array & $ struct ) : void { foreach ( $ struct as & $ v ) { if ( is_object ( $ v ) ) { $ v = clone $ v ; } elseif ( is_array ( $ v ) ) { $ this -> cloneStructure ( $ v ) ; } } }
Clone all objects within the given array structure.
Clone all objects within the given array structure .