public function __clone() { $this->key = $this->key !== null ? clone $this->key : null; $this->value = clone $this->value; }