public function __clone() { $this->class = clone $this->class; $this->arguments = self::cloneAll($this->arguments); }