public function replaceKeys(array $keys): self
    {
        $values = \array_values($this->getArray());
        $result = \array_combine($keys, $values);

        return static::create(
            $result,
            $this->iteratorClass,
            false
        );
    }
public function replaceKeys(array $keys): self
    {
        $values = \array_values($this->getArray());
        $result = \array_combine($keys, $values);

        return static::create(
            $result,
            $this->iteratorClass,
            false
        );
    }
public function replaceKeys ( array $ keys ) : self { $ values = \ array_values ( $ this -> getArray ( ) ) ; $ result = \ array_combine ( $ keys , $ values ) ; return static :: create ( $ result , $ this -> iteratorClass , false ) ; }
Replace the keys in an array with another set.

@param array $keys <p>An array of keys matching the array's size</p>

@return static
<p>(Immutable)</p>
Replace the keys in an array with another set .