public function __clone() { if ($this->root) { $this->options = clone $this->options; } if ($this->next) { $this->next = clone $this->next; } }