src/ngrest/ConfigBuilder.php
public function copyFrom($key, $removeFields = [])
    {
        $temp = $this->config[$key];
        foreach ($removeFields as $name) {
            if (array_key_exists($name, $temp)) {
                unset($temp[$name]);
            }
        }

        $this->config[$this->pointer] = ArrayHelper::merge($this->config[$this->pointer], $temp);
    }
public function copyFrom($key, $removeFields = [])
    {
        $temp = $this->config[$key];
        foreach ($removeFields as $name) {
            if (array_key_exists($name, $temp)) {
                unset($temp[$name]);
            }
        }

        $this->config[$this->pointer] = ArrayHelper::merge($this->config[$this->pointer], $temp);
    }
public function copyFrom ( $ key , $ removeFields = [ ] ) { $ temp = $ this -> config [ $ key ] ; foreach ( $ removeFields as $ name ) { if ( array_key_exists ( $ name , $ temp ) ) { unset ( $ temp [ $ name ] ) ; } } $ this -> config [ $ this -> pointer ] = ArrayHelper :: merge ( $ this -> config [ $ this -> pointer ] , $ temp ) ; }
Copy from a pointer into another with optional removal of fields, the copie will applied
to the current active pointer.

@param string $key The pointer to copy from
@param array $removeFields
Copy from a pointer into another with optional removal of fields the copie will applied to the current active pointer .