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