obj = $name; } public function getName(){ return $this->obj; } public function setName($name){ $this->obj = $name; } public function copy(){ return clone $this; } } class Client{ public static function main(){ $newson = new Operation('nnnn'); var_dump($newson->copy()); } } Client::main();