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